[PATCH] D15071: [sanitizer] Detect an invalid answer in AtosSymbolizer
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 30 06:15:43 PST 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL254301: [sanitizer] Detect an invalid answer in AtosSymbolizer (authored by kuba.brecka).
Changed prior to commit:
http://reviews.llvm.org/D15071?vs=41376&id=41399#toc
Repository:
rL LLVM
http://reviews.llvm.org/D15071
Files:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_mac.cc
Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_mac.cc
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_mac.cc
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_mac.cc
@@ -121,6 +121,12 @@
const char *rest = trim;
char *symbol_name;
rest = ExtractTokenUpToDelimiter(rest, " (in ", &symbol_name);
+ if (rest[0] == '\0') {
+ InternalFree(symbol_name);
+ InternalFree(trim);
+ return false;
+ }
+
if (internal_strncmp(symbol_name, "0x", 2) != 0)
*out_name = symbol_name;
else
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15071.41399.patch
Type: text/x-patch
Size: 620 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151130/1e4ca157/attachment.bin>
More information about the llvm-commits
mailing list