diff options
| author | James Henderson <jh7370@my.bristol.ac.uk> | 2020-01-07 10:21:20 +0000 |
|---|---|---|
| committer | James Henderson <jh7370@my.bristol.ac.uk> | 2020-01-07 10:22:35 +0000 |
| commit | 216796f234c757b832898adec28d5d523c80dce2 (patch) | |
| tree | 2a073b3eb9450ea9a89be536f8f201988f0e7ad3 /llvm/lib/Support | |
| parent | 051c4d5b7bcfb0c1feb69f4701086ac725322527 (diff) | |
| download | bcm5719-llvm-216796f234c757b832898adec28d5d523c80dce2.tar.gz bcm5719-llvm-216796f234c757b832898adec28d5d523c80dce2.zip | |
[DebugInfo] Fix infinite loop caused by reading past debug_line end
If the claimed unit length of a debug line program is such that the line
table would finish past the end of the .debug_line section, an infinite
loop occurs because the data extractor will continue to "read" zeroes
without changing the offset. This previously didn't hit an error because
the line table program handles a series of zeroes as a bad extended
opcode.
This patch fixes the inifinite loop and adds a warning if the program
doesn't fit in the available data.
Reviewed by: JDevlieghere
Differential Revision: https://reviews.llvm.org/D72279
Diffstat (limited to 'llvm/lib/Support')
0 files changed, 0 insertions, 0 deletions

