Re: [PATCH] storage_file_probe: change maximum len value in vmdk4GetBackingStore

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux