]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/dwarf: add missing bound check to read_loclist_index
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 2 Feb 2021 15:40:51 +0000 (10:40 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 3 Feb 2021 14:52:42 +0000 (09:52 -0500)
commit21ef6109064abe48c40d2cdda0b61ae146d12513
tree3bd5e6871b4583a46c04abad59ad9642c275668c
parent39658ce654b6f9b89e4edb9c22b68b32a650f869
gdb/dwarf: add missing bound check to read_loclist_index

read_rnglist_index has a bound check to make sure that we don't go past
the end of the section while reading the offset, but read_loclist_index
doesn't.  Add it to read_loclist_index.

gdb/ChangeLog:

* dwarf2/read.c (read_loclist_index): Add bound check for the end
of the offset.

Change-Id: Ic4b55c88860fdc3e007740949c78ec84cdb4da60
gdb/ChangeLog
gdb/dwarf2/read.c