Re: [PATCH 2/6] virDomainFormatSchedDef: Handle case when func returns NULL

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

 



On Tue, May 31, 2016 at 12:33:26 +0200, Michal Privoznik wrote:
> As unlikely as it might seem, func passed to this function can
> return NULL. And in some cases it indeed does so:
> virDomainDefGetVcpuSched and virDomainDefGetIOThreadSched.
> However, the function I'm fixing blindly dereference value func
> returned thus leading to SIGSEGV.

Same as in the coverity case complaining about this it won't happen here
since we are iterating a known list of items that was collected
beforehand and thus no crashing will happen.

Attachment: signature.asc
Description: Digital signature

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