-
Notifications
You must be signed in to change notification settings - Fork 722
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
JFR: Prevent chunk buffer overflows #20504
Conversation
jenkins test sanity.functional xlinux jdk11 |
jenkins test sanity.functional alinux64 jdk11 |
@gacholio Please review these changes |
Detect chunk buffer overflow and prevent subsequent writes to the buffer. Also, update chunk buffer size calculations. Skip frames with incomplete data in stacktraces. Add missing memory frees. Signed-off-by: tajila <[email protected]>
jenkins compile win,xlinux jdk21 |
if (!_isLE) { | ||
newVal = byteSwap(val); | ||
} |
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 think calling byteSwap()
is appropriate for any platform here or in any writeLEB*
method.
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.
Ill address this
Detect chunk buffer overflow and prevent subsequent writes to the buffer. Also, update chunk buffer size calculations.
Skip frames with incomplete data in stacktraces.
Add missing memory frees.