Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug MessageUnpacker#prepareNumberBuffer reads updated buffer #346

Closed
wants to merge 1 commit into from

Conversation

komamitsu
Copy link
Member

I ran into a bug that MessageUnpacker#unpack(Int|Long|Float|Double) occasionally returns the wrong value when using InputStreamBufferInput. And I found MessageUnpacker#prepareNumberBuffer reads the tail of buffer implicitly updated by InputStreamBufferInput#next with original position when the remaining size of buffer is shorter than read length.

@komamitsu
Copy link
Member Author

@frsyuki or @xerial Can you review this pull request?

@xerial
Copy link
Member

xerial commented Feb 22, 2016

@komamitsu Is it related to #341?

@komamitsu
Copy link
Member Author

Yeah. I didn't notice it. The fix is almost same as mine.

xerial added a commit to xerial/msgpack-java that referenced this pull request Feb 22, 2016
xerial added a commit to xerial/msgpack-java that referenced this pull request Feb 22, 2016
xerial added a commit to xerial/msgpack-java that referenced this pull request Feb 22, 2016
xerial added a commit to xerial/msgpack-java that referenced this pull request Feb 22, 2016
@xerial
Copy link
Member

xerial commented Feb 23, 2016

Let me close this PR since this is fixed in #348

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.

None yet

2 participants