-
Notifications
You must be signed in to change notification settings - Fork 506
ORC-1879: [C++] Fix Heap Buffer Overflow in LZO Decompression #2191
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
Conversation
wgtmac
left a comment
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.
Thanks for fixing this!
| 0x00, // token: extended literal length | ||
| 0xFF, // extension byte 1 | ||
|
|
||
| // Literal data: only 10 bytes far less than 273 |
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.
Why magic number 273?
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.
Why magic number
273?
Simply a large enough number that comes from 0x00 0xff.
dongjoon-hyun
left a comment
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.
dongjoon-hyun
left a comment
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.
+1, LGTM.
### What changes were proposed in this pull request? Fix Heap Buffer Overflow Vulnerability in LZO Decompression ### Why are the changes needed? This vulnerability has several security implications ### How was this patch tested? UT passed ### Was this patch authored or co-authored using generative AI tooling? NO Closes #2191 from ffacs/main. Authored-by: ffacs <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 6b78a0d) Signed-off-by: Dongjoon Hyun <[email protected]>
### What changes were proposed in this pull request? Fix Heap Buffer Overflow Vulnerability in LZO Decompression ### Why are the changes needed? This vulnerability has several security implications ### How was this patch tested? UT passed ### Was this patch authored or co-authored using generative AI tooling? NO Closes #2191 from ffacs/main. Authored-by: ffacs <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 6b78a0d) Signed-off-by: Dongjoon Hyun <[email protected]>
|
Merged to main/2.1/2.0. Could you make two backport PRs for branch-1.9 and branch-1.8, please, @ffacs ? |
|
It seems that the patch starts to fail from |
### What changes were proposed in this pull request? Fix Heap Buffer Overflow Vulnerability in LZO Decompression ### Why are the changes needed? This vulnerability has several security implications ### How was this patch tested? UT passed ### Was this patch authored or co-authored using generative AI tooling? NO Closes #2191 from ffacs/main. Authored-by: ffacs <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
### What changes were proposed in this pull request? Fix Heap Buffer Overflow Vulnerability in LZO Decompression ### Why are the changes needed? This vulnerability has several security implications ### How was this patch tested? UT passed ### Was this patch authored or co-authored using generative AI tooling? NO Closes apache#2191 from ffacs/main. Authored-by: ffacs <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
### What changes were proposed in this pull request? Fix Heap Buffer Overflow Vulnerability in LZO Decompression ### Why are the changes needed? This vulnerability has several security implications ### How was this patch tested? UT passed ### Was this patch authored or co-authored using generative AI tooling? NO Closes apache#2191 from ffacs/main. Authored-by: ffacs <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
What changes were proposed in this pull request?
Fix Heap Buffer Overflow Vulnerability in LZO Decompression
Why are the changes needed?
This vulnerability has several security implications
How was this patch tested?
UT passed
Was this patch authored or co-authored using generative AI tooling?
NO