Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1846

[proton-c] Message decode fails with PN_OUT_OF_MEMORY if there are large lists in the message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • proton-c-0.22.0
    • None
    • proton-c
    • None

    Description

      Steps to reproduce -

       

      1. Start the Qpid Dispatch router
      2. Run the following script that creates a bunch of addresses
      3. for i in `seq 1 6546`; do echo "{\"prefix\":\"address-$i\",\"distribution\":\"balanced\"}" | qdmanage CREATE -type=org.apache.qpid.dispatch.router.config.address --name address$i --stdin; done
      4. now run qdmanage QUERY --type=address
      5. You will receive a Data error (-10)

      The following diff seems to fix the issue

      diff --git a/c/src/core/data.h b/c/src/core/data.h
      index 94dc7d67..f4320e2a 100644
      — a/c/src/core/data.h
      +++ b/c/src/core/data.h
      @@ -27,7 +27,7 @@
       #include "decoder.h"
       #include "encoder.h"
       
      -typedef uint16_t pni_nid_t;
      +typedef uint32_t pni_nid_t;
       #define PNI_NID_MAX ((pni_nid_t)-1)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gmurthy Ganesh Murthy
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: