This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch xerces-3.3
in repository https://gitbox.apache.org/repos/asf/xerces-c.git
The following commit(s) were added to refs/heads/xerces-3.3 by this push:
new e4a6c8b63 XERCESC-2270 - Nested elements can exhaust stack
e4a6c8b63 is described below
commit e4a6c8b6385bd546a1c1d8672f5260152ef8bce3
Author: Scott Cantor <[email protected]>
AuthorDate: Mon Nov 2 12:51:05 2026 -0500
XERCESC-2270 - Nested elements can exhaust stack
https://issues.apache.org/jira/browse/XERCESC-2270
Expand element stack until large enough to accomodate content.
---
src/xercesc/internal/IGXMLScanner.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xercesc/internal/IGXMLScanner.cpp
b/src/xercesc/internal/IGXMLScanner.cpp
index d694b23e6..2444c9bf1 100644
--- a/src/xercesc/internal/IGXMLScanner.cpp
+++ b/src/xercesc/internal/IGXMLScanner.cpp
@@ -2560,7 +2560,7 @@ bool IGXMLScanner::scanStartTagNS(bool& gotData)
fElemStack.setCurrentScope(currentScope);
// Set element next state
- if (elemDepth >= fElemStateSize) {
+ while (elemDepth >= fElemStateSize) {
resizeElemState();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]