r248458 - clang/test/Analysis/malloc-overflow2.c: Appease 32-bit targets.

Devin Coughlin via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 23 20:02:33 PDT 2015


Thanks for fixing this!

Devin

> On Sep 23, 2015, at 7:49 PM, NAKAMURA Takumi via cfe-commits <cfe-commits at lists.llvm.org> wrote:
> 
> Author: chapuni
> Date: Wed Sep 23 21:49:00 2015
> New Revision: 248458
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=248458&view=rev
> Log:
> clang/test/Analysis/malloc-overflow2.c: Appease 32-bit targets.
> 
> size_t is not unsigned long for targeting i686 (and Windows x64).
> 
> Modified:
>    cfe/trunk/test/Analysis/malloc-overflow2.c
> 
> Modified: cfe/trunk/test/Analysis/malloc-overflow2.c
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/malloc-overflow2.c?rev=248458&r1=248457&r2=248458&view=diff
> ==============================================================================
> --- cfe/trunk/test/Analysis/malloc-overflow2.c (original)
> +++ cfe/trunk/test/Analysis/malloc-overflow2.c Wed Sep 23 21:49:00 2015
> @@ -1,4 +1,4 @@
> -// RUN: %clang_cc1 -analyze -analyzer-checker=alpha.security.MallocOverflow,unix -verify %s
> +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -analyze -analyzer-checker=alpha.security.MallocOverflow,unix -verify %s
> 
> typedef __typeof__(sizeof(int)) size_t;
> extern void *malloc(size_t);
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits



More information about the cfe-commits mailing list