Skip to content

Commit

Permalink
Abort when libc was not found
Browse files Browse the repository at this point in the history
  • Loading branch information
GBuella committed Jun 19, 2017
1 parent e0505d6 commit 7622dfa
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/intercept.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,11 +408,9 @@ intercept(void)
init_patcher();

dl_iterate_phdr(analyze_object, NULL);
if (!libc_found) {
intercept_logs("libc not found");
intercept_log_close();
return;
}
if (!libc_found)
xabort("libc not found");

mprotect_asm_wrappers();
for (unsigned i = 0; i < objs_count; ++i)
activate_patches(objs + i);
Expand Down

0 comments on commit 7622dfa

Please sign in to comment.