Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

Patches over read when use raw binary streaming write. #25

Merged
merged 1 commit into from Jul 15, 2015
Merged

Patches over read when use raw binary streaming write. #25

merged 1 commit into from Jul 15, 2015

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants