[GitHub] [xerces-c] rouault opened a new pull request #3 9: Memleak fixes in ContentSpecNode and ComplexTypeInfo classes

GitBox <[email protected]>
Newsgroups gmane.text.xml.xerces-c.devel
Message-ID <[email protected]>
rouault opened a new pull request #39:
URL: https://github.com/apache/xerces-c/pull/39


   when a OutOfMemory exception occurs.
   
   Spotted by https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=39127 (on GDAL)
   
   The commits are a bit in increasing order of triviality. The ownership rules of ContentSpecNode first and second members, as used by ComplexTypeInfo, are super complex. shared_ptr would be much welcome here! I can just tell that valgrind on my test case reports no double-free nor memory leak after those fixes....
   
   By the way what is the C++11 story of Xerces and the potential use of unique_ptr, shared_ptr ?


-- 
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]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.