Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Remove abort when catching a signal. (VirusTotal#813)
Browse files Browse the repository at this point in the history
Combined with signal handler chaining from the JVM, this should be prevent the JVM from shutting down exception_handler gets called.
  • Loading branch information
wjsl authored and plusvic committed Jul 25, 2018
1 parent 5e90fd2 commit def9b16
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libyara/exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ static void exception_handler(int sig) {
int tidx = yr_get_tidx();

if (tidx != -1 && exc_jmp_buf[tidx] != NULL)
siglongjmp(*exc_jmp_buf[tidx], 1);

assert(false); // We should not reach this point.
siglongjmp(*exc_jmp_buf[tidx], 1);
}
}

Expand Down

0 comments on commit def9b16

Please sign in to comment.