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(core-processor): Force *_input syscalls to return an error on out of bounds offset and len params. #4186

Merged
merged 6 commits into from
Aug 28, 2024

Conversation

techraed
Copy link
Member

@techraed techraed commented Aug 23, 2024

Release notes: This PR fixes 2 error cases with *_input syscalls. First - when offset value is greater than a payload length, second - when a len value is greater than payload length. Both of these cases didn't force the syscall to return an error, so the caller (program) actually considers that provided inputs are valid and expects to have a message with a corresponding payload/payload length.

@gear-tech/dev

@techraed techraed added the A1-inprogress Issue is in progress or PR draft is not ready to be reviewed label Aug 23, 2024
@techraed techraed self-assigned this Aug 23, 2024
@techraed techraed added A0-pleasereview PR is ready to be reviewed by the team D1-core Gear Core C0-bug Something isn't working and removed A1-inprogress Issue is in progress or PR draft is not ready to be reviewed labels Aug 25, 2024
@techraed techraed added the B1-releasenotes The feature deserves to be added to the Release Notes label Aug 25, 2024
@techraed techraed changed the title fix(core-processor): Fix *_input syscalls to return error on out of range params. fix(core-processor): Force *_input syscalls to return an error on out of range offset and len params. Aug 25, 2024
@techraed techraed changed the title fix(core-processor): Force *_input syscalls to return an error on out of range offset and len params. fix(core-processor): Force *_input syscalls to return an error on out of bounds offset and len params. Aug 25, 2024
@techraed techraed merged commit d444bda into master Aug 28, 2024
10 checks passed
@techraed techraed deleted the st-push-input-bug branch August 28, 2024 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A0-pleasereview PR is ready to be reviewed by the team B1-releasenotes The feature deserves to be added to the Release Notes C0-bug Something isn't working D1-core Gear Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants