Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compiler: close upvalues on loop control statements
When removing locals from all scopes, upvalues need to be considered like in uc_compiler_leave_scope(). Closing them is required to avoid leaving lingering references to stack values that went out of scope, which would lead to invalid memory accesses in subsequent code when such upvalues are used by closures. Fixes: #187 Signed-off-by: Felix Fietkau <[email protected]> [add testcase, reword commit message] Signed-off-by: Jo-Philipp Wich <[email protected]>
- Loading branch information