]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libebl: Check NT_PLATFORM core notes contain a zero terminated string.
authorMark Wielaard <mark@klomp.org>
Wed, 16 Jan 2019 14:41:31 +0000 (15:41 +0100)
committerMark Wielaard <mark@klomp.org>
Wed, 16 Jan 2019 14:41:31 +0000 (15:41 +0100)
commitde01cc6f9446187d69b9748bb3636361c79e77a4
tree73d0ff2f46bc249a16d0da96d98c1d12c05fc145
parente65d91d21cb09d83b001fef9435e576ba447db32
libebl: Check NT_PLATFORM core notes contain a zero terminated string.

Most strings in core notes are fixed size. But NT_PLATFORM contains just
a variable length string. Check that it is actually zero terminated
before passing to readelf to print.

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

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdwfl/ChangeLog
libdwfl/linux-core-attach.c
libebl/ChangeLog
libebl/eblcorenote.c
libebl/libebl.h
src/ChangeLog
src/readelf.c