diff options
author | Aleksei Vetrov <vvvvvv@google.com> | 2023-02-13 20:10:05 +0000 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2023-02-14 16:37:35 +0100 |
commit | e444d60a341b7b9bc3ae763a843d3e7190234ca9 (patch) | |
tree | 83c930311b14ee673593d946375a9f206a07b7ec /libebl/eblmachinesectionflagcheck.c | |
parent | f2c522567ad63ac293535fba9704895e685ab5bc (diff) | |
download | elfutils-e444d60a341b7b9bc3ae763a843d3e7190234ca9.tar.gz |
libdw: check memory access in get_(u|s)leb128
__libdw_get_uleb128 and __libdw_get_sleb128 should check if addrp has
already reached the end before unrolling the first step. It is done by
moving __libdw_max_len to the beginning of the function, which can
notice, that addrp is beyond the end. Then we just check the result of
this function.
Signed-off-by: Aleksei Vetrov <vvvvvv@google.com>
Diffstat (limited to 'libebl/eblmachinesectionflagcheck.c')
0 files changed, 0 insertions, 0 deletions