aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCSE.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2019-05-27 00:48:59 +0000
committerNico Weber <nicolasweber@gmx.de>2019-05-27 00:48:59 +0000
commitcfe08bc7d68712d8bdb2c205981bbbf15968a19e (patch)
tree3f301c254c74fc59e1bfe65355df92aceea4388b /llvm/lib/CodeGen/MachineCSE.cpp
parent11b2f4fe50dae42d070bfdd798cc29a70dad320a (diff)
downloadllvm-cfe08bc7d68712d8bdb2c205981bbbf15968a19e.zip
llvm-cfe08bc7d68712d8bdb2c205981bbbf15968a19e.tar.gz
llvm-cfe08bc7d68712d8bdb2c205981bbbf15968a19e.tar.bz2
llvm-undname: Make demangling of MD5 names more robust
Demangler::parse() for MD5 names would: 1. Put all remaining text into the MD5 name sight unseen 2. Not modify MangledName This meant that if the demangler recursively called parse() (e.g. in demangleLocallyScopedNamePiece()), every recursive call that started on an MD5 name would add all remaining bytes to the output buffer but only advance the input by a byte. For valid inputs, MD5 types are never (well, see comments for 2 exceptions) nested, but for invalid input this could cause memory use quadratic in the input size. llvm-svn: 361744
Diffstat (limited to 'llvm/lib/CodeGen/MachineCSE.cpp')
0 files changed, 0 insertions, 0 deletions