-
-
Notifications
You must be signed in to change notification settings - Fork 673
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
We are missing 4 bytes in the LZ4 compression buffer. #1226
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1226 +/- ##
==========================================
+ Coverage 94.10% 94.12% +0.02%
==========================================
Files 205 205
Lines 34453 34452 -1
==========================================
+ Hits 32421 32428 +7
+ Misses 2032 2024 -8
Continue to review full report at Codecov.
|
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.
The 4 bytes are already included in get_maximum_output_size, but let's not rely on that
The previous code was creating a slice with unallocated memory. (in addition to being uninitialized) |
With the |
@PSeitz Now it is allocated. Before this PR, the last 4 bytes were not necessarily allocated. |
Closes #831