Commit ebdf1ebf authored by Nick Clifton's avatar Nick Clifton
Browse files

Fix invalid memory access attempting to read the compression header of a...

Fix invalid memory access attempting to read the compression header of a too-small compressed section.

	PR binutils/21149
	* readelf.c (get_compression_header): Add size parameter.  Check
	size against sizeof compression header before attempting to
	extract the header.
	(process_section_headers): Pass size to get_compression_header.
	(dump_section_as_strings): Likewise.
	(dump_section_as_bytes): Likewise.
	(load_specific_debug_section): Likewise.
parent 4aeb00ad
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment