aboutsummaryrefslogtreecommitdiff
path: root/lldb/scripts/Python/modify-python-lldb.py
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-05-17 22:09:56 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-05-17 22:09:56 +0000
commit8b7252a8b3612b79adcd2d17c09bd6f1ab3dcca3 (patch)
treec169cbf616f3a298db1a6255c6a5b8a94b37c09e /lldb/scripts/Python/modify-python-lldb.py
parentf15eac1110cc963cabda42759e6eb9d6f077f30a (diff)
downloadllvm-8b7252a8b3612b79adcd2d17c09bd6f1ab3dcca3.zip
llvm-8b7252a8b3612b79adcd2d17c09bd6f1ab3dcca3.tar.gz
llvm-8b7252a8b3612b79adcd2d17c09bd6f1ab3dcca3.tar.bz2
Fix a nasty bug where inside StringLiteralParser:
1. We would assume that the length of the string literal token was at least 2 2. We would allocate a buffer with size length-2 And when the stars aligned (one of which would be an invalid source location due to stale PCH) The length would be 0 and we would try to allocate a 4GB buffer. Add checks for this corner case and a bunch of asserts. (We really really should have had an assert for 1.). Note that there's no test case since I couldn't get one (it was major PITA to reproduce), maybe later. llvm-svn: 131492
Diffstat (limited to 'lldb/scripts/Python/modify-python-lldb.py')
0 files changed, 0 insertions, 0 deletions