acb56a8 Fix access violation when parsing a corrupt IEEE binary.

Authored and Committed by nickc 6 years ago
    Fix access violation when parsing a corrupt IEEE binary.
    
    	PR binutils/21612
    	* libieee.h (struct common_header_type): Add end_p field.
    	* ieee.c (this_byte_and_next): Do not advance input_p beyond
    	end_p.
    	(read_id): Check for a length that exceeds the remaining bytes in
    	the input buffer.
    	(ieee_seek): Initialise end_p.
    	(ieee_archive_p): Likewise.
    	(ieee_object_p): Likewise.
    
        
file modified
+12 -0
file modified
+20 -3
file modified
+1 -0