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

bc: forbid negative array index #521

Merged
merged 1 commit into from
Mar 25, 2024
Merged

Commits on Mar 25, 2024

  1. bc: forbid negative array index

    * Negative array index is being caught when accessing a value (p instruction), but is not caught when assigning a value (P instruction)
    * Adapt existing guard code from 'p' instruction
    * For consistency with undefined-function error, replace YYERROR call with "last INSTR"
    * Only the 2nd-from-top ope_stack element is needed; fetch it with splice instead of pop+push dance for $value
    mknos committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    621999c View commit details
    Browse the repository at this point in the history