mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
The DFI memory chunk manager cannot handle PT_LOAD segments of size 0. This can lead to a NULL pointer access in mem_chunk_find() in case zgetdump is given an invalid VMCORE ELF file as input which contains only zero-sized ELF PT_LOAD segments. Instead of crashing, show an error message and terminate gracefully. The TELA test dump_with_zero_sized_segments.sh can reproduce this bug. Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>