Re: [PATCH 3/3] util: fix potential crash in virDiskNameParse

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

 



09.06.2016 14:58, Peter Krempa пишет:

On Mon, Jun 06, 2016 at 20:59:24 +0300, Maxim Nestratov wrote:
As far as virDiskNameToIndex calls virDiskNameParse and doesn't
check parameters and in most cases is used with disk->dst as a
parameter and disk->dst is by virIndexToDiskName, which can
return NULL, virDiskNameParse can crash in such cases.
Let's be paranoic and sustain even such incorrect usage.
We expect disk->dst to be assigned all the time in more than just this
code thus I don't think adding this makes any sense.

Peter

Ok. Up to you.

Maxim

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[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]