Qpid
  1. Qpid
  2. QPID-2474

ACL file reader can trip vector iter validity checking

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.7
    • Component/s: C++ Broker
    • Labels:
      None
    • Environment:

      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.

        Activity

        Hide
        Steve Huston added a comment -

        Fixed on trunk r931345

        Show
        Steve Huston added a comment - Fixed on trunk r931345

          People

          • Assignee:
            Steve Huston
            Reporter:
            Steve Huston
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development