Files
s390-tools/zdump
Alexander Egorenkov 38b520ab4c zdump/dfi_elf: Don't accept ELF input with zero-sized PT_LOAD segments
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>
2021-09-30 16:55:02 +02:00
..
2019-12-12 18:04:32 +01:00
2019-12-12 18:04:32 +01:00
2019-12-12 18:04:32 +01:00
2017-08-21 10:55:40 +02:00
2017-08-21 10:55:40 +02:00
2017-08-21 10:55:40 +02:00
2019-12-12 18:04:32 +01:00
2017-08-21 10:55:40 +02:00
2019-12-12 18:04:32 +01:00
2017-08-21 10:55:40 +02:00
2019-12-12 18:04:32 +01:00
2017-08-21 10:55:40 +02:00
2017-08-21 10:55:40 +02:00
2018-05-07 13:42:03 +02:00
2017-08-21 10:55:40 +02:00
2018-05-07 13:42:03 +02:00