[llvm-commits] [compiler-rt] r157580 - /compiler-rt/trunk/lib/asan/asan_printf.cc

Alexander Potapenko glider at google.com
Mon May 28 08:00:45 PDT 2012


Author: glider
Date: Mon May 28 10:00:45 2012
New Revision: 157580

URL: http://llvm.org/viewvc/llvm-project?rev=157580&view=rev
Log:
More verbose check in AppendString.

Modified:
    compiler-rt/trunk/lib/asan/asan_printf.cc

Modified: compiler-rt/trunk/lib/asan/asan_printf.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_printf.cc?rev=157580&r1=157579&r2=157580&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_printf.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_printf.cc Mon May 28 10:00:45 2012
@@ -88,7 +88,7 @@
 static inline int AppendString(char **buff, const char *buff_end,
                                const char *s) {
   // Avoid library functions like stpcpy here.
-  RAW_CHECK(s);
+  RAW_CHECK_MSG(s, "Error: passing a NULL pointer to AppendString\n");
   int result = 0;
   for (; *s; s++) {
     result += AppendChar(buff, buff_end, *s);





More information about the llvm-commits mailing list