[RFC][Draft patch] Introduce IntegerSanitizer in GCC.

Jeff Law law@redhat.com
Tue Jul 12 16:03:00 GMT 2016


On 07/12/2016 02:48 AM, Maxim Ostapenko wrote:
>
> void foo (unsigned len)
> {
>     ...................
>     void *p = malloc (len);
> }
>
> void bar ()
> {
>     ...................
>     unsigned len = a + b;
>     foo (len);
> }
Inlining & lto can help here as could a symbolic execution engine. 
This is precisely the kidn of analysis we need to be moving into.

Jeff



More information about the Gcc mailing list