diff options
author | James Henderson <james.henderson@sony.com> | 2020-02-11 12:17:33 +0000 |
---|---|---|
committer | James Henderson <james.henderson@sony.com> | 2020-02-12 14:49:22 +0000 |
commit | 23cf0a30b1528cf268ffdf13e04a5baa7eddfe0a (patch) | |
tree | b1962f58353404255f57968d9228fa0c45b2f8cc /llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp | |
parent | 1da62b51a5f00a4b84843f3ecc8a495de618afc8 (diff) | |
download | llvm-23cf0a30b1528cf268ffdf13e04a5baa7eddfe0a.zip llvm-23cf0a30b1528cf268ffdf13e04a5baa7eddfe0a.tar.gz llvm-23cf0a30b1528cf268ffdf13e04a5baa7eddfe0a.tar.bz2 |
[DebugInfo] Add check for zero debug line opcode_base
The number of standard opcodes is defined to be opcode_base - 1, so a
value of 0 for the opcode_base caused a crash as an attempt was made to
reserve many entries in a vector. This change fixes the crash, by
issuing a warning and skipping reading of standard opcode lengths in the
event of an opcode_base of 0.
Reviewed by: dblaikie
Differential Revision: https://reviews.llvm.org/D74309
Diffstat (limited to 'llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp')
0 files changed, 0 insertions, 0 deletions