You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Andrew Stitcher (Jira)" <ji...@apache.org> on 2026/09/14 20:34:00 UTC
[jira] [Created] (PROTON-2968) pn_decoder_decode rejects compound counts too large for the node array
Andrew Stitcher created PROTON-2968:
---------------------------------------
Summary: pn_decoder_decode rejects compound counts too large for the node array
Key: PROTON-2968
URL: https://issues.apache.org/jira/browse/PROTON-2968
Project: Qpid Proton
Issue Type: Bug
Components: proton-c
Reporter: Andrew Stitcher
Assignee: Andrew Stitcher
Fix For: proton-c-0.41.0
Elements of a zero width type (null, true, ...) take up no input bytes at
all, so the count in an array header is not bounded by the size the header
declares, the way a list's would be.
No array with a count larger than the maximum allowed would be decoded into the node array, so reject the count outright as soon as the header is read, with PN_OUT_OF_MEMORY - which is what a decode that ran out of nodes would report anyway.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org