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

pn_data_t capacity does not grow above 32768 items

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-0.9, proton-0.9.1, proton-0.10
    • proton-0.11.0
    • proton-c
    • None
    • Patch

    Description

      pn_data_grow() function looses half of the available data capacity.
      The following happens: when data overflows, pn_data_grow is invoked. It increases data capacity 2 times and reallocates nodes array. Data capacity is represented as uint16_t type and so when capacity reaches 32768 items, the result of multiplication by 2 becomes 0. This makes realloc return null and crashes the program.

      Attachments

        Activity

          People

            aconway Alan Conway
            derUhu Michael
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: