Skip to content

Commit

Permalink
extern some variables + cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rmalmain committed Sep 12, 2024
1 parent ee43af7 commit 73cc187
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 4 additions & 1 deletion include/libafl/user.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ struct libafl_mapinfo {
bool is_valid;
};

extern void (*libafl_dump_core_hook)(int host_sig);
extern int libafl_force_dfl;

void libafl_dump_core_exec(int signal);

void libafl_qemu_handle_crash(int host_sig, siginfo_t* info, void* puc);
Expand All @@ -35,4 +38,4 @@ int _libafl_qemu_user_init(int argc, char** argv, char** envp);

#ifdef AS_LIB
void libafl_qemu_init(int argc, char** argv);
#endif
#endif
5 changes: 0 additions & 5 deletions linux-user/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -736,11 +736,6 @@ void die_with_signal(int host_sig)
_exit(EXIT_FAILURE);
}

//// --- Begin LibAFL code ---


//// --- End LibAFL code ---

static G_NORETURN
void dump_core_and_abort(CPUArchState *env, int target_sig)
{
Expand Down

0 comments on commit 73cc187

Please sign in to comment.