libelf: Don't overflow offsets in elf_cvt_Verneed and elf_cvt_Verdef
authorMark Wielaard <mark@klomp.org>
Sun, 20 Mar 2022 21:21:05 +0000 (22:21 +0100)
committerMark Wielaard <mark@klomp.org>
Sun, 20 Mar 2022 21:21:05 +0000 (22:21 +0100)
commit2785ba7ad21e3f28949c7333d48412122ebbcfa2
tree8c524b6596f57ea1504ba97c80296c06f65f7df4
parent3b878cfe71b5637ad043382e8c300233cff89f6e
libelf: Don't overflow offsets in elf_cvt_Verneed and elf_cvt_Verdef

The conversion functions for Verdef and Verneed keep offsets to the next
structure. Make sure that following vd_aux, vda_next, vd_next, vn_aux,
vna_next and vn_next don't overflow (and wrap around) the offsets.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libelf/ChangeLog
libelf/version_xlate.h