[compiler-rt] r174965 - [asan] Add new __isoc99_*scanf to ASan intercepted functions list.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Tue Feb 12 04:45:30 PST 2013


Author: eugenis
Date: Tue Feb 12 06:45:29 2013
New Revision: 174965

URL: http://llvm.org/viewvc/llvm-project?rev=174965&view=rev
Log:
[asan] Add new __isoc99_*scanf to ASan intercepted functions list.

Modified:
    compiler-rt/trunk/lib/asan/asan_intercepted_functions.h

Modified: compiler-rt/trunk/lib/asan/asan_intercepted_functions.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_intercepted_functions.h?rev=174965&r1=174964&r2=174965&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_intercepted_functions.h (original)
+++ compiler-rt/trunk/lib/asan/asan_intercepted_functions.h Tue Feb 12 06:45:29 2013
@@ -195,6 +195,8 @@ DECLARE_FUNCTION_AND_WRAPPER(int, pthrea
                              void *(*start_routine)(void*), void *arg);
 # endif
 
+// stdio.h
+# if SANITIZER_INTERCEPT_SCANF
 DECLARE_FUNCTION_AND_WRAPPER(int, vscanf, const char *format, va_list ap);
 DECLARE_FUNCTION_AND_WRAPPER(int, vsscanf, const char *str, const char *format,
                              va_list ap);
@@ -205,6 +207,18 @@ DECLARE_FUNCTION_AND_WRAPPER(int, fscanf
                              void* stream, const char *format, ...);
 DECLARE_FUNCTION_AND_WRAPPER(int, sscanf,  // NOLINT
                              const char *str, const char *format, ...);
+DECLARE_FUNCTION_AND_WRAPPER(int, __isoc99_vscanf, const char *format,
+                             va_list ap);
+DECLARE_FUNCTION_AND_WRAPPER(int, __isoc99_vsscanf, const char *str,
+                             const char *format, va_list ap);
+DECLARE_FUNCTION_AND_WRAPPER(int, __isoc99_vfscanf, void *stream,
+                             const char *format, va_list ap);
+DECLARE_FUNCTION_AND_WRAPPER(int, __isoc99_scanf, const char *format, ...);
+DECLARE_FUNCTION_AND_WRAPPER(int, __isoc99_fscanf,
+                             void* stream, const char *format, ...);
+DECLARE_FUNCTION_AND_WRAPPER(int, __isoc99_sscanf,  // NOLINT
+                             const char *str, const char *format, ...);
+# endif
 
 # if defined(__APPLE__)
 typedef void* pthread_workqueue_t;





More information about the llvm-commits mailing list