-
Notifications
You must be signed in to change notification settings - Fork 108
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 a corruption when raw message > 0x10000000 bytes #95
Conversation
The easiest way to fix the
|
Good catch — thank you! Can you say more about why |
I'm not sure if that interpretation of the spec is strictly correct. Technically speaking, I submitted a PR that fixes that broken tests: #96. Let me know if you would like to merge the PR or just pin to the old version of |
Let's rebase on master and force-push to make sure the CI passes now. |
This fixes a data corruption bug when writing a message that exceeds 0x10000000 bytes in size. The varint-encoded size in the beginning of the message includes an extra byte. Add a test for this condition.
ea79509
to
ec2c3bf
Compare
CI looks good... |
Thanks so much! |
You are very welcome. Could you please cut a release? Would like to be able to pull the fix in from npm. |
@slam published as v3.2.0. |
Thank you for the quick response. Really appreciate it. |
This fixes a data corruption bug when writing a message that exceeds
0x10000000 bytes in size. The varint-encoded size in the beginning of
the message includes an extra byte.
Add a test for this condition.