Commit 03f7786e authored by Nick Clifton's avatar Nick Clifton
Browse files

Fix readelf writing to illegal addresses whilst processing corrupt input files...

Fix readelf writing to illegal addresses whilst processing corrupt input files containing symbol-difference relocations.

	PR binutils/21137
	* readelf.c (target_specific_reloc_handling): Add end parameter.
	Check for buffer overflow before writing relocated values.
	(apply_relocations): Pass end to target_specific_reloc_handling.
parent 13a590ca
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