r196044 - in /trunk/gcc: ChangeLog asan.c tests...

dodji@gcc.gnu.org dodji@gcc.gnu.org
Thu Feb 14 04:37:00 GMT 2013


Author: dodji
Date: Thu Feb 14 04:37:56 2013
New Revision: 196044

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196044
Log:
[asan] Fix a thinko leading to a crash

It appeared that in my previous patch, a stupid thinko can lead to a
crash when instrumenting some builtin functionsK.  Fixed thus.

Bootstrapped and tested against trunk on x86_64-unknown-linux-gnu.

gcc/
	* asan.c (instrument_builtin_call):  Really put the length of the
	second source argument into src1_len.

gcc/testsuite/

	* c-c++-common/asan/memcmp-2.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/asan/memcmp-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/asan.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list