Skip to content

Commit

Permalink
Add qemu pid into crash log
Browse files Browse the repository at this point in the history
  • Loading branch information
5angjun committed Sep 30, 2023
1 parent 6539e31 commit d7c8c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nyx/hypercall/hypercall.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ void handle_hypercall_kafl_core_dump(struct kvm_run *run,
assert(hypercall_enabled);
char crashPath[256] = {0};
int32_t pid = (int32_t)getpid();
sprintf(crashPath, "/tmp/kAFL_crash_call_stack.log");
sprintf(crashPath, "/tmp/kAFL_crash_call_stack_%d",pid);

char *crash_dump_buffer = (char*)malloc(256);
memset(crash_dump_buffer, 0, 256);
Expand Down

0 comments on commit d7c8c58

Please sign in to comment.