[PATCH] D74343: [compiler-rt] Follow up fix for the refactoring in https://reviews.llvm.org/D74137.

Max Moroz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 10 10:29:28 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG405093045feb: [compiler-rt] Follow up fix for the refactoring in https://reviews.llvm. (authored by Dor1s).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74343/new/

https://reviews.llvm.org/D74343

Files:
  compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_libcdep.cpp


Index: compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_libcdep.cpp
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_libcdep.cpp
+++ compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_libcdep.cpp
@@ -529,8 +529,8 @@
       break;
     if (read_len + 1 == max_length) {
       Report("WARNING: Symbolizer buffer too small\n");
-      buffer[0] = '\0';
-      return false;
+      read_len = 0;
+      break;
     }
   }
   buffer[read_len] = '\0';


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74343.243633.patch
Type: text/x-patch
Size: 532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200210/c7289cce/attachment.bin>


More information about the llvm-commits mailing list