[pcre-dev] [Bug 2136] New: resource leaks at function proce…

Top Pagina
Delete this message
Auteur: admin
Datum:  
Aan: pcre-dev
Onderwerp: [pcre-dev] [Bug 2136] New: resource leaks at function process_command() in file src/pcre2test.c
https://bugs.exim.org/show_bug.cgi?id=2136

            Bug ID: 2136
           Summary: resource leaks at function process_command() in file
                    src/pcre2test.c
           Product: PCRE
           Version: 10.23 (PCRE2)
          Hardware: All
                OS: All
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: shqking@???
                CC: pcre-dev@???


Created attachment 1022
--> https://bugs.exim.org/attachment.cgi?id=1022&action=edit
one possible workaround

Several resource leaks are found at function process_command() in file
src/pcre2test.c.

At line 4474, 4501 and 4508, the opened file is NOT closed before the function
returns, in the case if any exception occurs when writing data into the file.

Attached is one possible workaround.

Thanks.

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