[libvirt] [PATCH] util: Fix coverity warings in virProcessGetAffinity
Eric Blake
eblake at redhat.com
Wed Jun 10 21:18:15 UTC 2015
On 06/10/2015 09:27 AM, John Ferlan wrote:
>> So there are basically three options:
>> 1) Silence the coverity warning
>
> So on line just prior to CPU_ISSET_S either:
>
> sa_assert(sizeof(unsigned long int) == sizeof(cpu_set_t));
Is that true even on 32-bit platforms?
>
> or
>
> /* coverity[overrun-local] */
Might be safer, even though I generally prefer sa_assert() over /* magic
comment */
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150610/bcd112b3/attachment-0001.sig>
More information about the libvir-list
mailing list