Skip to content

Commit

Permalink
Removed xsha1/xsha256 workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
mappzor committed Nov 6, 2024
1 parent 25eb33c commit 6241bfb
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tools/ZydisFuzzReEncoding.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,6 @@ int ZydisFuzzTarget(ZydisStreamRead read_fn, void *stream_ctx)
{
return EXIT_FAILURE;
}
// TODO: Temporary workaround for `xsha1` and `xsha256` with OSIZE prefix
if (insn1.mnemonic == ZYDIS_MNEMONIC_XSHA1 || insn1.mnemonic == ZYDIS_MNEMONIC_XSHA256)
{
if (insn1.attributes & ZYDIS_ATTRIB_HAS_OPERANDSIZE)
{
return EXIT_SUCCESS;
}
}

ZydisReEncodeInstruction(&decoder, &insn1, operands1, insn1.operand_count_visible, buffer);

Expand Down

0 comments on commit 6241bfb

Please sign in to comment.