diff options
| author | Mark Wielaard <[email protected]> | 2019-01-16 15:41:31 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2019-01-16 15:41:31 +0100 |
| commit | de01cc6f9446187d69b9748bb3636361c79e77a4 (patch) | |
| tree | 73d0ff2f46bc249a16d0da96d98c1d12c05fc145 /libebl/libebl.h | |
| parent | e65d91d21cb09d83b001fef9435e576ba447db32 (diff) | |
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 <[email protected]>
Diffstat (limited to 'libebl/libebl.h')
| -rw-r--r-- | libebl/libebl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libebl/libebl.h b/libebl/libebl.h index ca9b9fec..24922eb8 100644 --- a/libebl/libebl.h +++ b/libebl/libebl.h @@ -319,7 +319,8 @@ typedef struct /* Describe the format of a core file note with the given header and NAME. NAME is not guaranteed terminated, it's NHDR->n_namesz raw bytes. */ -extern int ebl_core_note (Ebl *ebl, const GElf_Nhdr *nhdr, const char *name, +extern int ebl_core_note (Ebl *ebl, const GElf_Nhdr *nhdr, + const char *name, const char *desc, GElf_Word *regs_offset, size_t *nregloc, const Ebl_Register_Location **reglocs, size_t *nitems, const Ebl_Core_Item **items) |
