This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sanitizer/71498] ubsan bounds checking influenced by surrounding code


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71498

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Still occurs with current trunk. The same can be observed by the following;
passing a 'static const' string seems to inhibit the instrumentation.

int a[100];
extern void call(const char * fn);
int testje (int core)
{
   static const char FUNCTION[] = "testje";
   call(FUNCTION);
   return a[core];
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]