integer overflow check

jes at posteo.de jes at posteo.de
Mon Dec 15 15:23:58 PST 2014


Am 15.12.2014 23:56 schrieb Julien Cristau:
> Yes, I did mean unsigned.  The 'count' member of xDRI2GetBuffersReq is 
> a
> CARD32, which is unsigned.

stuff->count is later used to call DRI2GetBuffers which takes an signed 
int, so I
assume that stuff->count is signed.

Why whould the check against INT_MAX be there if stuff->count would be 
unsigned in the first place?


Jan


More information about the xorg-devel mailing list