Skip to content

Fix parsing negative Int32Value that crosses segment boundary#8035

Merged
jtattermusch merged 2 commits intoprotocolbuffers:masterfrom
JamesNK:jamesnk/int32wrapper-blocksize
Nov 13, 2020
Merged

Fix parsing negative Int32Value that crosses segment boundary#8035
jtattermusch merged 2 commits intoprotocolbuffers:masterfrom
JamesNK:jamesnk/int32wrapper-blocksize

Conversation

@JamesNK
Copy link
Contributor

@JamesNK JamesNK commented Nov 12, 2020

Fixes #8027

@google-cla google-cla bot added the cla: yes label Nov 12, 2020
@JamesNK
Copy link
Contributor Author

JamesNK commented Nov 12, 2020

@jtattermusch

@jtattermusch
Copy link
Contributor

Looks like the bug was originally introduced already in https://github.com/protocolbuffers/protobuf/pull/6843/files#diff-d740c4c5c32b30dbd921e0d61adac31089322bceaa2aa34b6b3020951817779eR851 (and it stayed around when moving the code to ParsingPrimitivesWrappers.cs)

@chrisdunelm since you are the author of #6843, can you please review?

@jtattermusch jtattermusch self-requested a review November 13, 2020 13:45
@jtattermusch
Copy link
Contributor

@acozzette I believe this is a release blocker - feel free to also review.

Copy link
Contributor

@chrisdunelm chrisdunelm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@jtattermusch jtattermusch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the quick fix.

@jtattermusch jtattermusch merged commit 012fe85 into protocolbuffers:master Nov 13, 2020
This was referenced Nov 13, 2020
acozzette pushed a commit to acozzette/protobuf that referenced this pull request Nov 13, 2020
acozzette pushed a commit that referenced this pull request Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C#: Wrong deserialization of Int32Value (from wrappers.proto) for negative values when segment boundary is crossed

4 participants