mirror of
https://github.com/vtil-project/VTIL-Core
synced 2026-08-17 08:23:03 -04:00
Implemented operand type validation.
This commit is contained in:
parent
50b5792b24
commit
ef6afdddaa
1 changed files with 12 additions and 0 deletions
|
|
@ -60,5 +60,17 @@ namespace vtil
|
|||
else
|
||||
branch_operands_rip.push_back( -op - 1 );
|
||||
}
|
||||
|
||||
// Validate operand types.
|
||||
//
|
||||
bool written = false;
|
||||
for ( operand_type type : operand_types )
|
||||
{
|
||||
if ( type >= operand_type::write )
|
||||
{
|
||||
fassert( !written );
|
||||
written = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue