Files
clamav/libclamav/c++/bytecode2llvm.cpp
Török Edvin 162c2e431b bytecode2llvm: don't crash when stderr is unavailable.
Writing to errs() when stderr is not open results in write Error getting flagged
in LLVM's raw_fd_ostream, which results in a call to llvm_report_error.
However since jmp_buf is not valid anymore we end up crashing on longjmp.

Fix:
 - reset the thread-local recovery (jmp_buf*) to NULL when exiting the block
 where it is valid
 - clear errors on errs() on shutdown to avoid the report_fatal_error
2010-11-10 14:21:47 +02:00

70 KiB