Qpid
  1. Qpid
  2. QPID-4416

perl binding for getContentPtr fails on payloads containing NULL

    Details

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

      Description

      getContentPtr uses SWIG_FromCharPtr, however this uses strlen internally, so assumes the payload doesn't contain NULL - SWIG_FromCharPtrAndSize should be used instead.

        Activity

        Hide
        Jimmy Jones added a comment -

        Proposed fix

        Show
        Jimmy Jones added a comment - Proposed fix
        Hide
        Darryl L. Pierce added a comment -

        Wrote a test to verify the fix. Will include the test in the upcoming unit test suite for Perl.

        Show
        Darryl L. Pierce added a comment - Wrote a test to verify the fix. Will include the test in the upcoming unit test suite for Perl.

          People

          • Assignee:
            Darryl L. Pierce
            Reporter:
            Jimmy Jones
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development