[gs-bugs] [Bug 690649] New: check arguments in gs_enumerate_files_*

bugs.ghostscript.com-bugzilla-daemon at ghostscript.com bugs.ghostscript.com-bugzilla-daemon at ghostscript.com
Thu Jul 23 12:55:00 PDT 2009


http://bugs.ghostscript.com/show_bug.cgi?id=690649

           Summary: check arguments in gs_enumerate_files_*
           Product: Ghostscript
           Version: HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P4
         Component: General
        AssignedTo: ralph.giles at artifex.com
        ReportedBy: ralph.giles at artifex.com
         QAContact: gs-bugs at ghostscript.com


Debugging the msvc build of gxps circa r9883, I discovered a segfault in
pjl_check_font_path(), which was assuming gs_enumerate_file_next would fail if
passed the return value of gs_enumerate_files_init(), even if the later returned
NULL to indicate failure.

This was fixed in r9884, but I think it's worth checking the arguments in the
implementations as well. The extra conditional isn't expensive relative to
talking to a filesystem, and we'll gain much better error recovery elsewhere.



------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.



More information about the gs-bugs mailing list