Project

General

Profile

« Previous | Next » 

Revision 0bf1749e

Added by alanwu (Alan Wu) almost 2 years ago

YJIT: Fix argument clobbering in some block_arg+rest_param calls (#8647)

Previously, for block argument callsites with some specific argument
count and callee local variable count combinations, YJIT ended up
writing over arguments that are supposed to be collected into a rest
parameter array unmodified.

Detect when clobbering would happen and avoid it. Also, place the block
handler after the stack overflow check, since it writes to new stack
space.

Reported-by: Takashi Kokubun