[pcre-dev] [Bug 2074] New: Files not closed on CMD_LOAD/CMD_…

Kezdőlap
Üzenet törlése
Szerző: admin
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] [Bug 2074] New: Files not closed on CMD_LOAD/CMD_SAVE error
https://bugs.exim.org/show_bug.cgi?id=2074

            Bug ID: 2074
           Summary: Files not closed on CMD_LOAD/CMD_SAVE error
           Product: PCRE
           Version: 10.23 (PCRE2)
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: ppisar@???
                CC: pcre-dev@???


Created attachment 1003
--> https://bugs.exim.org/attachment.cgi?id=1003&action=edit
Fix

When pcre2test processes CMD_LOAD or CMD_SAVE command, a file is opened. If an
error occurs the file is not closed and an orphaned FILE structure leaks.

This is not so serious as pcre2test has limited life time and usually does not
process many files. But still nice to fix. A fix is attached.

PCRE2-10.23 and latest SVN code is affected.

--
You are receiving this mail because:
You are on the CC list for the bug.