Qpid Proton
  1. Qpid Proton
  2. PROTON-368

Calling pn_messenger_put with a message with no address causes a segmentation fault

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.4
    • Fix Version/s: 0.5
    • Component/s: None
    • Labels:
      None

      Description

      In the Ruby bindings, if a Qpid::Proton::Message object is created but not given an address, and is then passed to Qpid::Proton::Messenger.put, the underlying C code blows up on the missing address.

      Specifically at the line:

      pn_link_t *sender = pn_messenger_target(messenger, address);

      It should instead check that the address is set and, if not, fail earlier than this point.

        Issue Links

          Activity

          Darryl L. Pierce created issue -
          Rafael H. Schloming made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Rafael H. Schloming [ rhs ]
          Resolution Fixed [ 1 ]
          Rafael H. Schloming made changes -
          Fix Version/s 0.5 [ 12324004 ]
          Rafael H. Schloming made changes -
          Link This issue is duplicated by PROTON-309 [ PROTON-309 ]

            People

            • Assignee:
              Rafael H. Schloming
              Reporter:
              Darryl L. Pierce
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development