[LLVMbugs] [Bug 16916] New: Tries to compile __isoc99_vscanf etc function intercepts even when those are disabled
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Aug 16 08:15:27 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16916
Bug ID: 16916
Summary: Tries to compile __isoc99_vscanf etc function
intercepts even when those are disabled
Product: compiler-rt
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: compiler-rt
Assignee: unassignedbugs at nondot.org
Reporter: s_llvm at nedprod.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I suggest this fix:
---
a/projects/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
+++
b/projects/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
@@ -409,7 +409,6 @@ SCANF_INTERCEPTOR_IMPL(__isoc99_fscanf, __isoc99_vfscanf,
stream, format)
INTERCEPTOR(int, __isoc99_sscanf, const char *str, const char *format, ...)
SCANF_INTERCEPTOR_IMPL(__isoc99_sscanf, __isoc99_vsscanf, str, format)
-#endif
#define INIT_SCANF
\
INTERCEPT_FUNCTION(scanf);
\
@@ -424,6 +423,15 @@ SCANF_INTERCEPTOR_IMPL(__isoc99_sscanf, __isoc99_vsscanf,
str, format)
INTERCEPT_FUNCTION(__isoc99_vscanf);
\
INTERCEPT_FUNCTION(__isoc99_vsscanf);
\
INTERCEPT_FUNCTION(__isoc99_vfscanf);
+#else
+#define INIT_SCANF
\
+ INTERCEPT_FUNCTION(scanf);
\
+ INTERCEPT_FUNCTION(sscanf);
\
+ INTERCEPT_FUNCTION(fscanf);
\
+ INTERCEPT_FUNCTION(vscanf);
\
+ INTERCEPT_FUNCTION(vsscanf);
\
+ INTERCEPT_FUNCTION(vfscanf);
+#endif
#else
#define INIT_SCANF
Niall
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130816/1e74f4bb/attachment.html>
More information about the llvm-bugs
mailing list