libdw: Make sure id_path can contain max number of build id bytes.
authorMark Wielaard <mark@klomp.org>
Tue, 5 Jun 2018 19:29:27 +0000 (21:29 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 8 Jun 2018 10:03:14 +0000 (12:03 +0200)
commit0393dccf9a346c9ecd8753bcbe0b31f8a1edbe5b
tree854b715249c762f55ef9982805bd7a7597b767f8
parent8e2728833042eb4e01e52284a764b122920ca9cc
libdw: Make sure id_path can contain max number of build id bytes.

The MAX_BUILD_ID_BYTES is fairly large (64), while normally build-ids
are only 20 bytes long. But if we would encounter a jumbo build-id we
should have enough room to construct the full build-id path.

We used to substract 2 bytes from the max, because 2 chars are used
as subdir. But that should be 1 (2 hex chars is just one 8 bit byte).

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/dwarf_getalt.c