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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.18
    • 0.20, 0.21
    • Perl Client
    • None
    • 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. hello_world2.pl
          2 kB
          Jimmy Jones
        2. null-in-string-inside-map.patch
          0.6 kB
          Jimmy Jones

        Activity

          People

            mcpierce Darryl Pierce
            jimmyjones2 Jimmy Jones
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: