]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libelf: Correct overflow check in note_xlate.
authorMark Wielaard <mark@klomp.org>
Wed, 16 Jan 2019 11:25:57 +0000 (12:25 +0100)
committerMark Wielaard <mark@klomp.org>
Wed, 16 Jan 2019 11:25:57 +0000 (12:25 +0100)
commite65d91d21cb09d83b001fef9435e576ba447db32
tree92a13bb96433e75ce5d60c679fb4df0bbbf0467c
parent012018907ca05eb0ab51d424a596ef38fc87cae1
libelf: Correct overflow check in note_xlate.

We want to make sure the note_len doesn't overflow and becomes shorter
than the note header. But the namesz and descsz checks got the note header
size wrong). Replace the wrong constant (8) with a sizeof cvt_Nhdr (12).

https://sourceware.org/bugzilla/show_bug.cgi?id=24084

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