[GitHub] [xerces-c] rouault opened a new pull request #2 9: [Backport 3.2] CurlURLInputStream constructor: avoid memory leak
GitBox <[email protected]>
| Newsgroups | gmane.text.xml.xerces-c.devel |
|---|---|
| Message-ID | <xerces-c.29.MDExOlB1bGxSZXF1ZXN0NzE1MjQwOTcw.gitbox@gitbox.apache.org> |
rouault opened a new pull request #29: URL: https://github.com/apache/xerces-c/pull/29 CurlURLInputStream constructor calls the readMore() method, which can throw exceptions. In that situation, the destructor is not called, which results in resource/memory leaks. To fix that, catch the exceptions, manually do the cleanup and rethrow the exceptions. Found by ossfuzz (locally) Backport of https://github.com/apache/xerces-c/pull/28 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]