Skip to content

check range of PICK before accessing stack#1

Open
evilotto wants to merge 1 commit intoFourmilab:masterfrom
evilotto:pick-check
Open

check range of PICK before accessing stack#1
evilotto wants to merge 1 commit intoFourmilab:masterfrom
evilotto:pick-check

Conversation

@evilotto
Copy link
Copy Markdown

memcheck doesn't validate the range of PICK at all before accessing, so something trivial like

1 99999 pick

would segfault. This change validates the argument before accessing the stack. Also validates the argument to ROLL as unsigned before accessing, so that

0 -99999 roll

is caught as underflow.

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