Skip to content

Conversation

lseeker
Copy link
Contributor

@lseeker lseeker commented Jul 15, 2015

When specified streaming write with length on raw binary, try to fill whole buffer room makes over read stream and results broken format. (binary length != real length)

Length check before fill to buffer to fix.

Length check before fill to buffer to ensure read exactly specified
length.
@cowtowncoder
Copy link
Member

Very good catch, thank you!

cowtowncoder added a commit that referenced this pull request Jul 15, 2015
Patches over read when use raw binary streaming write.
@cowtowncoder cowtowncoder merged commit 1dff2e1 into FasterXML:master Jul 15, 2015
cowtowncoder added a commit that referenced this pull request Jul 15, 2015
@cowtowncoder cowtowncoder added this to the 2.5.5 milestone Jul 15, 2015
@cowtowncoder
Copy link
Member

note: fix also backported in 2.3, 2.4 branches, due to nature of the problem.

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