[compiler-rt] r208294 - [msan] Fix potential infinite recursion in a test.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Thu May 8 02:37:36 PDT 2014

Author: eugenis
Date: Thu May  8 04:37:36 2014
New Revision: 208294

URL: http://llvm.org/viewvc/llvm-project?rev=208294&view=rev
[msan] Fix potential infinite recursion in a test.

If printf is intercepted (it is not atm), REAL(printf) call in the interceptor
would get redirected back to my_lgamma, resulting in infinite recursion.


Modified: compiler-rt/trunk/test/msan/wrap_indirect_calls_in_rtl.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/msan/wrap_indirect_calls_in_rtl.cc?rev=208294&r1=208293&r2=208294&view=diff
--- compiler-rt/trunk/test/msan/wrap_indirect_calls_in_rtl.cc (original)
+++ compiler-rt/trunk/test/msan/wrap_indirect_calls_in_rtl.cc Thu May  8 04:37:36 2014
@@ -34,7 +34,6 @@ int my_gettimeofday(struct timeval *p, v
 double my_lgamma(double x) {
-  printf("zzz\n");
   return x;

More information about the llvm-commits mailing list