This is an automated email from the ASF dual-hosted git repository.

rleigh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/xerces-c.git


The following commit(s) were added to refs/heads/master by this push:
     new 328f5be  SAX2XMLReaderImpl::error(): use exception memory manager, 
otherwise regular memory manager might fail to fully allocate the strings in 
the exception and cause memory leaks
     new 7dd9c51  Merge pull request #36 from 
rouault/SAX2XMLReaderImpl_error_fix
328f5be is described below

commit 328f5be1006faf4859f1dfeffb56ccf9a9e5ee16
Author: Even Rouault <even.roua...@spatialys.com>
AuthorDate: Wed Sep 15 21:08:40 2021 +0200

    SAX2XMLReaderImpl::error(): use exception memory manager, otherwise regular 
memory manager might fail to fully allocate the strings in the exception and 
cause memory leaks
---
 src/xercesc/parsers/SAX2XMLReaderImpl.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xercesc/parsers/SAX2XMLReaderImpl.cpp 
b/src/xercesc/parsers/SAX2XMLReaderImpl.cpp
index 23f2923..473fb66 100644
--- a/src/xercesc/parsers/SAX2XMLReaderImpl.cpp
+++ b/src/xercesc/parsers/SAX2XMLReaderImpl.cpp
@@ -1229,7 +1229,7 @@ void SAX2XMLReaderImpl::error(  const   unsigned int
         , systemId
         , lineNum
         , colNum
-        , fMemoryManager
+        , fMemoryManager->getExceptionMemoryManager()
     );
 
     if (!fErrorHandler)

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org

Reply via email to