integer overflow check
Julien Cristau
jcristau at debian.org
Mon Dec 15 14:56:45 PST 2014
On Mon, Dec 15, 2014 at 23:50:06 +0100, jes at posteo.de wrote:
> Am 15.12.2014 23:46 schrieb Julien Cristau:
> >Which undefined behaviour? Overflow of signed ints is not undefined, as
> >far as I know...
>
> Sorry, thats wrong.
>
> Overflow of unsigned integers is defined.
> Overflow of signed integers is undefined.
>
Yes, I did mean unsigned. The 'count' member of xDRI2GetBuffersReq is a
CARD32, which is unsigned.
Cheers,
Julien
More information about the xorg-devel
mailing list