Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-2474

ACL file reader can trip vector iter validity checking

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7
    • 0.7
    • C++ Broker
    • 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.

      Attachments

        Activity

          People

            shuston Stephen D. Huston
            shuston Stephen D. Huston
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: