projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
asan: readelf: wild read in get_num_dynamic_syms
[deliverable/binutils-gdb.git]
/
binutils
/
readelf.c
diff --git
a/binutils/readelf.c
b/binutils/readelf.c
index 87bb574129fb5b67f2ddc1dde9f6fe45ed7da381..798782c3a8209c467a90c1d0fb4ab82d93865e49 100644
(file)
--- a/
binutils/readelf.c
+++ b/
binutils/readelf.c
@@
-10211,7
+10211,8
@@
get_num_dynamic_syms (Filedata * filedata)
{
if (filedata->dynamic_info_DT_MIPS_XHASH)
{
- if (filedata->mipsxlat[off] >= num_of_syms)
+ if (off < filedata->ngnuchains
+ && filedata->mipsxlat[off] >= num_of_syms)
num_of_syms = filedata->mipsxlat[off] + 1;
}
else
This page took
0.025273 seconds
and
4
git commands to generate.