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

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



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


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