-
Notifications
You must be signed in to change notification settings - Fork 872
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
Issue with EXT when buffer ... grows? #561
Comments
@alexsnaps , thank you for reporting the issue. It seems that msgpack |
I fixed the issue by #562 . Here is an operation:
|
Works on my test case, y... Awesome thanks! |
redboltz
added a commit
that referenced
this issue
Feb 4, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like when I send a large chunk of msgpack data over, and the unpacker's buffer grows, some EXT's data get "corrupted" in a way.
I've setup a tiny example of the problem here: https://gist.github.com/alexsnaps/1296470ed59618d7a12db607aaddc3f2
Basically,
simple.mp
contains aMAP
with 2 entries in it, where the keys are expected to beEXT 0x00
. If theMSGPACK_CHUNK_SIZE
is too small to hold the entireMAP
, the first keyinput
will not be found when looking for it, but there will be garbage there instead. Making theMSGPACK_CHUNK_SIZE
big enough and avoid any internal buffer juggling, seems to solve the problem...Am I to do something to have the unpacker deal with these
EXT
correctly? Am I doing this all wrong to begin with? Or is there a bug lurking there?The code that's commented out and uses
simple_no_ext.mp
hasSTR
keys in theMAP
, that works fine out of the box afaict.The text was updated successfully, but these errors were encountered: