ACL file reader can trip vector iter validity checking
------------------------------------------------------

                 Key: QPID-2474
                 URL: https://issues.apache.org/jira/browse/QPID-2474
             Project: Qpid
          Issue Type: Bug
          Components: C++ Broker
    Affects Versions: 0.7
         Environment: Windows, Visual Studio
            Reporter: Steve Huston


The ACL file reading can trigger Windows Visual C++ consistency check on vector 
iterator decrement.

Running the C++ test suite's acl_test starts a broker with options:
--data-dir C:/qpid/trunk/build/src/tests/data_dir --acl-file policy.acl --auth 
no

This policy.acl file contains only:
acl allow all all

This trips VC checks in 
qpid::acl::AclReader::loadDecisionData(boost::shared_ptr<qpid::acl::AclData> 
d={...}) because the 'for' loop at line 92:
        for (rlCitr i = rules.end() - 1; cnt; i--, cnt--) {
tries to back i off the beginning of the vector.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to