[Bug libdw/26773] sleb128 values near INT64_MAX/MIN not correctly read
tromey at sourceware dot org
Thu Oct 22 20:07:38 GMT 2020
--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
I looked at this a little today.
In addition to this bug, I think the _unchecked variants
have another bug; namely they do:
const size_t max = len_leb128 (int64_t) - 1;
This limits the number of bytes read-- but it seems like
it maybe ought to read until the first byte without the
high bit set.
FWIW gdb seems to rely on implementation-defined behavior
here. It does all the sleb work in an unsigned type
and then casts it to signed on return.
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Elfutils-devel