Skip to content

fix: one byte heap overflow when a procedure has no parameters - #503

Merged
kadler merged 1 commit into
IBM:mainfrom
MinhyukHong:fix/zero-parameter-string-overflow
Oct 26, 2026
Merged

kadler merged 1 commit into
IBM:mainfrom
MinhyukHong:fix/zero-parameter-string-overflow

Conversation

@MinhyukHong

Copy link
Copy Markdown
Contributor

parameterString is allocated as parameterCount * 2 bytes, which is zero when callProcedure is given an empty array for a procedure that takes no parameters. The terminator is then written past the end of the allocation. Allocate one extra byte.

parameterString is allocated as parameterCount * 2 bytes, which is zero when callProcedure is given an empty array for a procedure that takes no parameters. The terminator is then written past the end of the allocation. Allocate one extra byte.

@kadler kadler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@kadler
kadler merged commit da8efac into IBM:main Oct 26, 2026
5 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