[vlc-devel] [PATCH] gme: fixed out-of-memory/out-of-range tests

Rémi Denis-Courmont remi at remlab.net
Sat Mar 24 17:10:28 CET 2012

Le vendredi 23 mars 2012 19:36:27 Piotr Fusik, vous avez écrit :
> an_int > INT_MAX makes no sense. You can:
> a. replace it with a_double > INT_MAX as I did
> b. replace it with an_int < 0

Eh? No you cannot do that because signed integer overflow is undefined in the 
C language.

> c. remove it
> I don't see how an unsigned would help here.

Rémi Denis-Courmont

More information about the vlc-devel mailing list