Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc cleanup, extern some global variables #86

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading