[cfe-commits] [PATCH] Fix crash-on-invalid when passing 128-bit integers to attributes that expect ICEs

Dmitri Gribenko gribozavr at gmail.com
Fri Jun 15 10:55:46 PDT 2012


Hello,

The attached patch fixes crash-on-invalid when passing 128-bit
integers to attributes that expect ICEs, for example:

void attr6(void *ptr) __attribute__((nonnull(0x10000000000000001i128)));

The root cause of the problem is using getZExtValue() on 128-bit integers.

Please review.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-commits mailing list