block_of_code: Add santiy check that far_code_offset < total_code_size
This commit is contained in:
parent
08ed8b4a11
commit
5bec200c36
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue