[cpp-xmltooling] branch main updated: Guard empty transform list.

Codeberg noreply at shibboleth.net
Sun Nov 22 22:31:07 UTC 2026


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch main
in repository cpp-xmltooling.

View the commit online:
https://codeberg.org/Shibboleth/cpp-xmltooling/commit/fcd516c07383b6904d3eede117e46a198bf406c6

The following commit(s) were added to refs/heads/main by this push:
     new fcd516c  Guard empty transform list.
fcd516c is described below

commit fcd516c07383b6904d3eede117e46a198bf406c6
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Sun Nov 22 17:30:51 2026 -0500

    Guard empty transform list.
---
 xmltooling/util/ReloadableXMLFile.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xmltooling/util/ReloadableXMLFile.cpp b/xmltooling/util/ReloadableXMLFile.cpp
index 6e496f4..be926a8 100644
--- a/xmltooling/util/ReloadableXMLFile.cpp
+++ b/xmltooling/util/ReloadableXMLFile.cpp
@@ -603,7 +603,7 @@ void ReloadableXMLFile::validateSignature(Signature& sigObj) const
             const XMLCh* URI=ref->getURI();
             if (URI==nullptr || *URI==0) {
                 const DSIGTransformList* tlist=ref->getTransforms();
-                if (tlist->getSize() <= 2) { 
+                if (tlist && tlist->getSize() <= 2) { 
                     for (unsigned int i=0; tlist && i<tlist->getSize(); i++) {
                         const DSIGTransform* t = tlist->item(i);
                         if (dynamic_cast<const DSIGTransformEnvelope*>(t)) {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list