Skip to content

Commit

Permalink
Most SPEC amd64 binaries passing verification
Browse files Browse the repository at this point in the history
  • Loading branch information
zyedidia committed Jun 17, 2024
1 parent 2836fb4 commit 7ce8b92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions lfi-verify/amd64/insn.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ static bool mnemonic_valid(ZydisMnemonic mnemonic) {
case ZYDIS_MNEMONIC_SQRTPD:
case ZYDIS_MNEMONIC_SQRTSS:
case ZYDIS_MNEMONIC_UNPCKLPS:
case ZYDIS_MNEMONIC_PCMPEQW:
return true;
}
return false;
Expand Down
4 changes: 1 addition & 3 deletions lfi-verify/amd64/verify.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ static bool spmod_sequence(Context* ctx) {
case ZYDIS_MNEMONIC_SUB:
case ZYDIS_MNEMONIC_MOV:
case ZYDIS_MNEMONIC_AND:
case ZYDIS_MNEMONIC_LEA:
break;
default:
return false;
Expand All @@ -325,9 +326,6 @@ static bool spmod_sequence(Context* ctx) {
return false;
if (!ctxnext(ctx))
return false;
if (ctx->instr.mnemonic == ZYDIS_MNEMONIC_NOP)
if (!ctxnext(ctx))
goto fail;

if (ctx->instr.mnemonic != ZYDIS_MNEMONIC_OR)
goto fail;
Expand Down

0 comments on commit 7ce8b92

Please sign in to comment.