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: [email protected]
For additional commands, e-mail: [email protected]