Skip to content

Fix MessageUnapcker.prepareNumberBuffer#363

Merged
xerial merged 4 commits intodevelopfrom
fix-number-buffer
Apr 19, 2016
Merged

Fix MessageUnapcker.prepareNumberBuffer#363
xerial merged 4 commits intodevelopfrom
fix-number-buffer

Conversation

@frsyuki
Copy link
Copy Markdown
Member

@frsyuki frsyuki commented Apr 19, 2016

prepareNumberBuffer was assuming that a buffer chunk includes at least
readLength bytes of data. Maximum size of readLength is 8.
Therefore, a problem could always happen if MessageBufferInput returns
buffer chunks smaller than 8 bytes.

frsyuki and others added 4 commits April 19, 2016 15:47
prepareNumberBuffer was assuming that a buffer chunk includes at least
`readLength` bytes of data. Maximum size of `readLength` is 8.
Therefore, a problem could always happen if MessageBufferInput returns
buffer chunks smaller than 8 bytes.
@xerial
Copy link
Copy Markdown
Member

xerial commented Apr 19, 2016

Nice catch. I added test cases to reproduce this issue.

@xerial xerial merged commit c4a3429 into develop Apr 19, 2016
@xerial xerial deleted the fix-number-buffer branch April 19, 2016 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants