-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix 2609 binary userdata lists #2785
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -959,6 +959,10 @@ protected long readLong(byte[] content) throws IOException { | |
| } | ||
| bytes = ByteUtils.rightAlignBytes(bytes, 8); | ||
| long value = ByteUtils.convertLongFromBytes(bytes); | ||
| if (value == BinaryOutputCapsule.NULL_OBJECT | ||
| || value == BinaryOutputCapsule.DEFAULT_OBJECT) { | ||
| index -= 4; | ||
| } | ||
|
Comment on lines
+962
to
+965
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change introduces a critical bug that will lead to stream corruption when reading The Consequently, when References
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tested these changes without this code snippet; the test runs without issues, so I suspect it's not related to the problem. |
||
| return value; | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand the double validation; isn't one validation enough?