[PATCH] Don't crash on invalid .def file
Filip Navara
xnavara@volny.cz
Mon Sep 27 23:35:00 GMT 2004
Abstract:
When an unparsable .def file is passed on command line to "ld" an crash
happens. This is because def_file_parse deletes the def_file context
that was passed to it and gld_i386pe_unrecognized_file still treats it
as a valid pointer and operates with it...
Changelog:
2004-09-27 Filip Navara <navaraf@reactos.com>
* emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file):
Prevent crash with invalid .def files.
* deffilep.y (def_file_parse):
Don't delete the passed def_file context on error.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ld3.diff
Type: text/x-patch
Size: 957 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20040927/09946ea9/attachment.bin>
More information about the Binutils
mailing list