Skip to content

Commit

Permalink
default trace-type to rip for bxcpu / uniquerip for kvm/winhv if a tr…
Browse files Browse the repository at this point in the history
…ace-path

is specified but no a trace-type
  • Loading branch information
0vercl0k committed Apr 22, 2024
1 parent a77e84e commit 3701e0f
Show file tree
Hide file tree
Showing 4 changed files with 388 additions and 360 deletions.
1 change: 0 additions & 1 deletion src/wtf/backend.cc
Expand Up @@ -334,7 +334,6 @@ uint64_t Backend_t::Cr2() { return GetReg(Registers_t::Cr2); }
void Backend_t::Cr2(const uint64_t Value) { SetReg(Registers_t::Cr2, Value); }
void Backend_t::Cr2(const Gva_t Value) { Cr2(Value.U64()); }


void Backend_t::PrintRegisters() {
const uint64_t Rax = GetReg(Registers_t::Rax), Rbx = GetReg(Registers_t::Rbx),
Rcx = GetReg(Registers_t::Rcx);
Expand Down
4 changes: 2 additions & 2 deletions src/wtf/client.cc
Expand Up @@ -189,7 +189,7 @@ bool Client_t::SendResult(const SocketFd_t &Fd, const std::string &Testcase,
const TestcaseResult_t &TestcaseResult) {
yas::mem_ostream Os;
yas::binary_oarchive<decltype(Os), YasFlags> Oa(Os);
Oa &Testcase &Coverage &TestcaseResult;
Oa & Testcase & Coverage & TestcaseResult;
const auto &Buf = Os.get_intrusive_buffer();
if (!Send(Fd, (uint8_t *)Buf.data, Buf.size)) {
fmt::print("Send failed\n");
Expand All @@ -203,7 +203,7 @@ std::string Client_t::DeserializeTestcase(const std::span<uint8_t> Buffer) {
yas::mem_istream Is(Buffer.data(), Buffer.size_bytes());
yas::binary_iarchive<decltype(Is), YasFlags> Ia(Is);
std::string Testcase;
Ia &Testcase;
Ia & Testcase;
return Testcase;
}

Expand Down
2 changes: 1 addition & 1 deletion src/wtf/honggfuzz.cc
Expand Up @@ -834,7 +834,7 @@ static void mangle_Resize(run_t *run, bool printable) {
}

void mangle_mangleContent(run_t *run, int speed_factor) {
static void (*const mangleFuncs[])(run_t * run, bool printable) = {
static void (*const mangleFuncs[])(run_t *run, bool printable) = {
/* Every *Insert or Expand expands file, so add more Shrink's */
mangle_Shrink,
mangle_Shrink,
Expand Down

0 comments on commit 3701e0f

Please sign in to comment.