Re: [RFC] Don't inline builtin memory functions when ASan is enabled.

2014-09-03 Thread Konstantin Serebryany
On Tue, Sep 2, 2014 at 7:32 AM, Maxim Ostapenko wrote: > Hi, > > At this moment, most of GCC builtin memory functions (for example strcpy, > stpcpy, wcpcpy, strdup, etc) are not instrumented by GCC, however some of > them are rather dangerous. If GCC inlines these builtin functions, we will > miss

[RFC] Don't inline builtin memory functions when ASan is enabled.

2014-09-02 Thread Maxim Ostapenko
Hi, At this moment, most of GCC builtin memory functions (for example strcpy, stpcpy, wcpcpy, strdup, etc) are not instrumented by GCC, however some of them are rather dangerous. If GCC inlines these builtin functions, we will miss important checks for arguments, and possible overflow won't b