libdwfl: Sanity check partial core file data reads.
authorMark Wielaard <mark@klomp.org>
Sun, 14 Oct 2018 14:45:48 +0000 (16:45 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 19 Oct 2018 22:13:09 +0000 (00:13 +0200)
commit20f9de9b5f704cec55df92406a50bcbcfca96acd
tree5f46e46f7f79cc385454edb73b8eeee48d8bd365
parent2f4a040fab520a97480f6ca6fa9fcef88bc55255
libdwfl: Sanity check partial core file data reads.

There were two issues when reading note data from a core file.
We didn't check if the data we already had in a buffer was big
enough. And if we did get the data, we should check if we got
everything, or just a part of the data.

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

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