[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:58:35 PDT 2012
Now with a patch. Excuse me for the noise.
On Fri, Jun 15, 2012 at 10:55 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> 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>*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: attr-128bit-crash-on-invalid.patch
Type: application/octet-stream
Size: 33087 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120615/b146c8c7/attachment.obj>
More information about the cfe-commits
mailing list