santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49256] New: DSIGXPathFilterExpr - std::vector - out of index
Date Thu, 06 May 2010 11:38:10 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49256

           Summary: DSIGXPathFilterExpr - std::vector - out of index
           Product: Security
           Version: C++ 1.5.1
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: minor
          Priority: P2
         Component: C++ Signature
        AssignedTo: security-dev@xml.apache.org
        ReportedBy: hagelkruys@a-trust.at


In the function DSIGTransformXPathFilter::expr(unsigned int n) the size check
for the vector m_expr is wrong.

You should compare (n >= m_exprs.size()) rather then (n > m_exprs.size()),
because the argument n must be lower then m_exprs.size(), the index of the
std::vector starts at 0

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message