On a Wednesday in 2023, Анастасия Белова wrote:
From: Anastasia Belova <abelova@xxxxxxxxxxxxx> desc length should be always less than VIR_STORAGE_MAX_HEADER. If len = VIR_STORAGE_MAX_HEADER, desc may be out of bounds. Fixes: 296032bfb2 ("util: extract storage file probe code into virtstoragefileprobe.c")
That commit only moved the code. The off-by-one error was introduced by: commit 348b4e254bea98c83107887c0cf64c6572063d64 storage: always probe type with buffer
Signed-off-by: Anastasia Belova <abelova@xxxxxxxxxxxxx> --- src/storage_file/storage_file_probe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx> Jano
Attachment:
signature.asc
Description: PGP signature