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 Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.18
    • Fix Version/s: 0.20, 0.21
    • Component/s: None
    • 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);

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

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development