Skip to content

Commit

Permalink
Fix hevd module (#16)
Browse files Browse the repository at this point in the history
This PR fixes a bug in the `fuzzer_hevd.cc logic` where the out buffer pointer was getting overwritten instead of the out buffer size.
  • Loading branch information
0vercl0k authored Aug 6, 2021
1 parent 4714b0c commit bbc75e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wtf/fuzzer_hevd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ bool InsertTestcase(const uint8_t *Buffer, const size_t BufferSize) {

g_Backend->R9(IoctlBufferSize);
const Gva_t Rsp = Gva_t(g_Backend->Rsp());
const Gva_t OutBufferSizePtr = Rsp + Gva_t(4 * sizeof(uint64_t));
const Gva_t OutBufferSizePtr = Rsp + Gva_t(5 * sizeof(uint64_t));
if (!g_Backend->VirtWriteStructDirty(OutBufferSizePtr, &IoctlBufferSize)) {
DebugPrint("VirtWriteStructDirty failed\n");
return false;
Expand Down

0 comments on commit bbc75e3

Please sign in to comment.