mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-07 07:29:59 +01:00
block_of_code: Add santiy check that far_code_offset < total_code_size
This commit is contained in:
parent
08ed8b4a11
commit
5bec200c36
@ -81,6 +81,7 @@ BlockOfCode::BlockOfCode(RunCodeCallbacks cb, JitStateInfo jsi, size_t total_cod
|
|||||||
, far_code_offset(far_code_offset)
|
, far_code_offset(far_code_offset)
|
||||||
, constant_pool(*this, CONSTANT_POOL_SIZE)
|
, constant_pool(*this, CONSTANT_POOL_SIZE)
|
||||||
{
|
{
|
||||||
|
ASSERT(total_code_size > far_code_offset);
|
||||||
EnableWriting();
|
EnableWriting();
|
||||||
GenRunCode(rcp);
|
GenRunCode(rcp);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user