summaryrefslogtreecommitdiff
path: root/include/ruby/internal/error.h
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2023-12-11 17:41:27 -0500
committerAlan Wu <XrXr@users.noreply.github.com>2023-12-11 19:21:08 -0500
commit9cb0ad863c0781062388fe1bb2a5d279dc29e734 (patch)
tree9b192192170a50e85f502c438d5fb8c17d5a68c3 /include/ruby/internal/error.h
parent47553094740ee17f2490fcb29893cac653c0b5dd (diff)
YJIT: Fix missing arity check for splat calls to methods with optionals
Previously, for splat callsites that land in methods with optional parameters, we didn't reject the case where the caller supplies too many arguments. Accepting those calls previously caused YJIT to construct corrupted control frames, which leads to crashes if the callee uses certain stack walking methods such as Kernel#raise and String#gsub (for setting up the frame-local `$~`). Example crash in a debug build: Assertion Failed: ../vm_core.h:1375:VM_ENV_FLAGS:FIXNUM_P(flags)
Diffstat (limited to 'include/ruby/internal/error.h')
0 files changed, 0 insertions, 0 deletions