[xerces-c] branch xerces-3.2 updated: SAX2XMLReaderImpl::error(): use exception memory manager, otherwise regular memory manager might fail to fully allocate the strings in the exception and cause memory leaks

[email protected]
Newsgroups gmane.text.xml.xerces-c.devel
Message-ID <166499637724.1077999.11245022321790561710@gitbox2-he-fi.apache.org>
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/xerces-3.2 by this push:
     new 4227d220a SAX2XMLReaderImpl::error(): use exception memory manager, otherwise regular memory manager might fail to fully allocate the strings in the exception and cause memory leaks
4227d220a is described below

commit 4227d220a797792019ee1337868e8af65cb982aa
Author: Even Rouault <[email protected]>
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 fda4a8b58..24e980c37 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)
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.