[fpc-devel] [patch] Trivial fix to exeinfo unit
Sergei Gorelkin
sergei_gorelkin at mail.ru
Thu Feb 26 15:51:02 CET 2009
Hello,
(As a side effect of digging into issue #13237):
When OpenExeFile is called with an empty filename argument, it
apparently opens stdin and crashes immediately thereafter trying to seek
in non-seekable stream.
The filename is empty whenever GetLineInfo is called with the address
that does not belong to valid module.
The attached patch fixes the crash.
Regards,
Sergei
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exeinfo.diff
Type: text/x-patch
Size: 361 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20090226/fa1ac4e6/attachment.bin>
More information about the fpc-devel
mailing list