[ 
https://issues.apache.org/jira/browse/QPID-6189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14185136#comment-14185136
 ] 

ASF subversion and git services commented on QPID-6189:
-------------------------------------------------------

Commit 1634539 from [~godfrer] in branch 'qpid/trunk'
[ https://svn.apache.org/r1634539 ]

QPID-6189 : [Java Common] fix stack overflow bug when frame is broken into 
thousands of reads/writes

> [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]

Reply via email to