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: hagelkr...@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.

Reply via email to