[compiler-rt] e53247c - Revert "[sanitizer] Fix crash on empty strings."

Evgenii Stepanov via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 27 13:23:23 PST 2021


Author: Evgenii Stepanov
Date: 2021-01-27T13:22:43-08:00
New Revision: e53247ca42059f0270385ef0ccf550dd600c2d2d

URL: https://github.com/llvm/llvm-project/commit/e53247ca42059f0270385ef0ccf550dd600c2d2d
DIFF: https://github.com/llvm/llvm-project/commit/e53247ca42059f0270385ef0ccf550dd600c2d2d.diff

LOG: Revert "[sanitizer] Fix crash on empty strings."

Wrong author name, will recommit shortly.

This reverts commit 262c50856a377371cbea673419143ae45c590b7e.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_libcdep.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_libcdep.cpp
index 98418b426c37..710da4c1cecd 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_libcdep.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_libcdep.cpp
@@ -356,7 +356,7 @@ void ParseSymbolizePCOutput(const char *str, SymbolizedStack *res) {
       InternalFree(info->function);
       info->function = 0;
     }
-    if (info->file && 0 == internal_strcmp(info->file, "??")) {
+    if (0 == internal_strcmp(info->file, "??")) {
       InternalFree(info->file);
       info->file = 0;
     }


        


More information about the llvm-commits mailing list