Skip to content

tcg: Fix delay_slot_flag UAF after exception#2312

Open
mwdmwd wants to merge 1 commit intounicorn-engine:devfrom
mwdmwd:dev
Open

tcg: Fix delay_slot_flag UAF after exception#2312
mwdmwd wants to merge 1 commit intounicorn-engine:devfrom
mwdmwd:dev

Conversation

@mwdmwd
Copy link

@mwdmwd mwdmwd commented Mar 23, 2026

This TCGv is not cleared when an exception happens, so on the next emu_start, a mov_i32 from it is generated, but this value belongs to the previous iteration's temp pool.

Fixes #2134

This TCGv is not cleared when an exception happens, so
on the next `emu_start`, a `mov_i32` from it is generated,
but this value belongs to the previous iteration's temp pool.

Fixes unicorn-engine#2134
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