Uploaded image for project: 'ActiveMQ C++ Client'
  1. ActiveMQ C++ Client
  2. AMQCPP-598

CmsTemplate::createConsumer possible dereference of null pointer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.9.4
    • Component/s: CMS Impl
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Flags:
      Patch

      Description

      If `CMSTemplate::takeSession()` returns NULL in `CMSTemplate::execute`, it is dereferenced in `CmsTemplate::createConsumer`. As far as I could tell, this is a plausible scenario, but I could be wrong. It looks like `ProducerExecutor::doInCms` checks for a NULL session, but `ReceiveExecutor::doInCms` does not. If this is because it is known that the session cannot be NULL, please close this issue. It just looked a bit off to me.

        Attachments

        1. CmsTemplate.cpp.patch
          0.6 kB
          Daniel L. Robertson

          Activity

            People

            • Assignee:
              tabish Timothy A. Bish
              Reporter:
              drobertson Daniel L. Robertson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: