[ https://issues.apache.org/jira/browse/PROTON-892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robbie Gemmell reassigned PROTON-892: ------------------------------------- Assignee: Alan Conway Assigning to Alan as requested in http://mail-archives.apache.org/mod_mbox/qpid-proton/201505.mbox/%3C1432734537.2993.118.camel%40redhat.com%3E > pn_data_t capacity does not grow above 32768 items > -------------------------------------------------- > > Key: PROTON-892 > URL: https://issues.apache.org/jira/browse/PROTON-892 > Project: Qpid Proton > Issue Type: Improvement > Components: proton-c > Affects Versions: 0.9, 0.9.1, 0.10 > Reporter: Michael > Assignee: Alan Conway > Priority: Minor > Attachments: 0003-data-capacity.patch > > > 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)