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 feed45d72 XERCESC-2272 - Improper read in XInclude path normalization
feed45d72 is described below

commit feed45d72258cd6149afccbe53475adf12dd7ea4
Author: Scott Cantor <[email protected]>
AuthorDate: Mon Nov 2 13:01:52 2026 -0500

    XERCESC-2272 - Improper read in XInclude path normalization
    
    https://issues.apache.org/jira/browse/XERCESC-2272
---
 src/xercesc/util/PlatformUtils.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xercesc/util/PlatformUtils.cpp 
b/src/xercesc/util/PlatformUtils.cpp
index 4e5402987..24ded6737 100644
--- a/src/xercesc/util/PlatformUtils.cpp
+++ b/src/xercesc/util/PlatformUtils.cpp
@@ -1015,7 +1015,7 @@ void XMLPlatformUtils::removeDotDotSlash(XMLCh* const path
     int segIndex = -1;
     int offset = 1;
 
-    while ((index = searchSlashDotDotSlash(&(path[offset]))) != -1)
+    while (offset <= pathLen && (index = 
searchSlashDotDotSlash(&(path[offset]))) != -1)
     {
         // Undo offset
         index += offset;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to