Skip to content

Conversation

GabrielBarrantes
Copy link

A stack-buffer-overflow occurred when a decorator (e.g., rounding or SAE) was encountered without a preceding operand. This caused the operand index to underflow, leading to invalid memory access.

Added a check to ensure opnum > 0 before decrementing, preventing the underflow and fixing the crash when parsing malformed decorators.

Fixes: #3392931

A stack-buffer-overflow occurred when a decorator (e.g., rounding or SAE)
was encountered without a preceding operand. This caused the operand index
to underflow, leading to invalid memory access.

Added a check to ensure `opnum > 0` before decrementing, preventing the
underflow and fixing the crash when parsing malformed decorators.

Fixes: #3392931

Signed-off-by: Gabriel Barrantes <[email protected]>
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.

1 participant