[PATCH] D33393: [PATCH] Libcxxabi Demangler PR32890
    Duncan P. N. Exon Smith via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Mon May 22 22:49:27 PDT 2017
    
    
  
dexonsmith added a reviewer: erik.pilkington.
dexonsmith added inline comments.
================
Comment at: src/cxa_demangle.cpp:3078-3079
                     ++t1;
-                db.names.back().first.insert(db.names.back().first.begin()+7, t0, t1);
+                if (db.names.back().first.length() > 7)
+                  db.names.back().first.insert(db.names.back().first.begin() + 7, t0, t1);
                 t0 = t1;
----------------
Should this be `>= 7`?
https://reviews.llvm.org/D33393
    
    
More information about the cfe-commits
mailing list