Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.7
-
None
-
Windows, Visual Studio
Description
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.