summaryrefslogtreecommitdiff
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorGavin Li <gavin@matician.com>2022-11-30 18:26:19 +0100
committerMark Wielaard <mark@klomp.org>2022-12-13 17:40:31 +0100
commit9c136cb3007f3c8649a6856c7e2f4fa6aabf76b8 (patch)
treed703f069b3eb0da1eb81841b8a5c1ccdcaed091b /src/ChangeLog
parent78dd3b32edf55fc8bdc6268163d5d743a84b1075 (diff)
downloadelfutils-9c136cb3007f3c8649a6856c7e2f4fa6aabf76b8.tar.gz
libdwfl: Read no more than required in dwfl_segment_report_module
Since read_portion and the standard dwfl_elf_phdr_memory_callback functions make sure to read at least minread bytes there is no need for dwfl_segment_report_module to check and adjust the data to the actual buffer size read. Reading beyond the end of the expected data size (if the buffer read is much larger) actually causes issues when passing the data to elfXX_xlatetom() because it is possible that src->d_size is not a multiple of recsize (for ELF_T_DYN, recsize is 16 while the minimum required alignment is 8), causing elfXX_xlatetom() to return ELF_E_INVALID_DATA. Signed-off-by: Gavin Li <gavin@matician.com> Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'src/ChangeLog')
0 files changed, 0 insertions, 0 deletions