From db892de5816789614e864503aa296a9c76c344b6 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Mon, 28 May 2012 15:00:45 +0000 Subject: [PATCH] More verbose check in AppendString. llvm-svn: 157580 --- compiler-rt/lib/asan/asan_printf.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/asan/asan_printf.cc b/compiler-rt/lib/asan/asan_printf.cc index 4f08f54..69c34fa 100644 --- a/compiler-rt/lib/asan/asan_printf.cc +++ b/compiler-rt/lib/asan/asan_printf.cc @@ -88,7 +88,7 @@ static inline int AppendSignedDecimal(char **buff, const char *buff_end, 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); -- 2.7.4