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

Re: [Xen-devel] [PATCH 13/16] libelf: use C99 bool for booleans



On Tue, Jun 4, 2013 at 7:00 PM, Ian Jackson <ian.jackson@xxxxxxxxxxxxx> wrote:
> We want to remove uses of "int" because signed integers have
> undesirable undefined behaviours on overflow.  Malicious compilers can
> turn apparently-correct code into code with security vulnerabilities
> etc.

So the main point here is to avoid false positives, as opposed to
actually fixing any potential bugs?  I.e., we can say, "There are
absolutely no int's anywhere in the code" and can stop worrying about
int-related bugs?

Or do you think there may be actual overflow conditions that might
happen when using an int as a boolean?

All the changes look fine to me:

Acked-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.