[gs-bugs] [Bug 691249] GS crash when executed by GSView's 'File'-'Convert'
bugzilla-daemon at ghostscript.com
bugzilla-daemon at ghostscript.com
Sun Apr 18 08:45:08 UTC 2010
http://bugs.ghostscript.com/show_bug.cgi?id=691249
--- Comment #1 from SaGS <sags5495 at hotmail.com> 2010-04-18 08:45:07 UTC ---
Created an attachment (id=6164)
--> (http://bugs.ghostscript.com/attachment.cgi?id=6164)
Suggested patch.
Fix: 2 ex-global variables were not initialized immediately after
being allocated. Bug 691249.
Not initializing io_device_table to NULL produces a crash if the 1st
argument processed is an ‘@file’. This happens for example when
Ghostscript is called by GSWiev’s ‘File’/ ‘Convert...’ function, or
when GS_OPTIONS starts with an ‘@file’ argument.
While I do not know of (and neither looked for) any adverse effect
of not initializing gs_name_table early, the patch does initialize
this variable too. I consider this to be good practice, as it makes
the code more robust.
--
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the gs-bugs
mailing list