Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-4480

If amqp/map contains a string containing a null, perl bindings will truncate it when encoding

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.18
    • Fix Version/s: 0.20, 0.21
    • Component/s: Perl Client
    • Labels:
      None
    • Environment:

      RHEL6

      Description

      The following code doesn't work as expected, the name element is truncated at the null byte.

      my $hash =

      { id => 1234, name => "Blah\x00Blah" }

      ;
      cqpid_perl::encode($hash, $outmsg);

        Attachments

        1. null-in-string-inside-map.patch
          0.6 kB
          Jimmy Jones
        2. hello_world2.pl
          2 kB
          Jimmy Jones

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: