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

          Hide
          ASF subversion and git services added a comment -

          Commit 1516161 from rhs@apache.org in branch 'proton/trunk'
          [ https://svn.apache.org/r1516161 ]

          Added simple smoke tests for the bindings. Encountered numerous issues
          along the way and fixed as appropriate, including:

          • added tracker return values for ruby put/get
          • fixed ruby accept/reject to omit the tracker arg
          • fixed a deprecation warning in the perl binding
          • added disposition calls for php (PROTON-365)
          • added incoming/outgoing window properties for php
          • fixed put of messages without an address (PROTON-368)
          • added C level inspection method for messages to allow consistent
            printing of messages across bindings
          Show
          ASF subversion and git services added a comment - Commit 1516161 from rhs@apache.org in branch 'proton/trunk' [ https://svn.apache.org/r1516161 ] Added simple smoke tests for the bindings. Encountered numerous issues along the way and fixed as appropriate, including: added tracker return values for ruby put/get fixed ruby accept/reject to omit the tracker arg fixed a deprecation warning in the perl binding added disposition calls for php ( PROTON-365 ) added incoming/outgoing window properties for php fixed put of messages without an address ( PROTON-368 ) added C level inspection method for messages to allow consistent printing of messages across bindings

            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