mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-02-03 03:21:36 -05:00
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
70 KiB
70 KiB