[
https://issues.apache.org/jira/browse/QPID-6189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rob Godfrey updated QPID-6189:
------------------------------
Status: Reviewable (was: In Progress)
> [Java Common] 0-8/9/9-1 parser can cause stack overflow if a frame is broken
> into many TCP reads/writes
> -------------------------------------------------------------------------------------------------------
>
> Key: QPID-6189
> URL: https://issues.apache.org/jira/browse/QPID-6189
> Project: Qpid
> Issue Type: Bug
> Components: Java Common
> Reporter: Rob Godfrey
> Assignee: Rob Godfrey
> Fix For: 0.31
>
>
> When an entire frame is split over many TCP reads/writes the 0-8/9/9-1 codec
> is effectively using tail recursion to iterate over the buffers to parse the
> whole frame. When there are a lot of buffers this can cause stack overflow.
> To guard against this we can simply squash the multiple buffers into a single
> buffer when we cross a threshold number of buffers.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]