Skip to content
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

fix mis-sizing of string in jbuf implementation #1353

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

baallan
Copy link
Collaborator

@baallan baallan commented Feb 1, 2024

Any time the jbuf string grows, the head of the jbuf must be accounted for. This patch fixes that oversight. The oversight leads to writing past the end of the string after it is expanded. Any code publishing large messages assembled with jbuf_t is subject to memory corruption if it writes in the last 16 bytes of the space believed to be available when they in fact aren't.

cherry picked for top of tree from 40ebe9b

Any time the jbuf string grows, the head of the jbuf must be accounted for.
This patch fixes that oversight. The oversight leads to writing past
the end of the string after it is expanded.
@baallan baallan requested a review from narategithub February 1, 2024 21:50
@tom95858 tom95858 merged commit 843e31a into ovis-hpc:OVIS-4 Feb 2, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants