aboutsummaryrefslogtreecommitdiff
path: root/bzip2.1
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2020-05-17 20:02:31 +0200
committerMark Wielaard <mark@klomp.org>2020-05-17 21:08:17 +0200
commit8ca1faa31f396d94ab927b257f3a05236c84e330 (patch)
treefc7e94d8c0be6d5673611adcddf790d11b0587fa /bzip2.1
parent4022613462968382ad707a67d2a1c4daf99a6cec (diff)
downloadbzip2-8ca1faa31f396d94ab927b257f3a05236c84e330.tar.gz
bzip2-8ca1faa31f396d94ab927b257f3a05236c84e330.tar.bz2
bzip2-8ca1faa31f396d94ab927b257f3a05236c84e330.zip
Don't call unsafe functions from SIGSEGV/SIGBUS signal handler.
GCC10 -fanalyzer notices that we try to call functions that are not signal safe from our fatal signal handler: bzip2.c: In function ‘mySIGSEGVorSIGBUScatcher’: bzip2.c:819:7: warning: call to ‘fprintf’ from within signal handler [CWE-479] [-Wanalyzer-unsafe-call-within-signal-handler] It also notices we then call showFileNames and cleanupAndFail which also call possibly not signal safe functions. Just write out the error message directly to STDERR and exit without trying to clean up any files.
Diffstat (limited to 'bzip2.1')
0 files changed, 0 insertions, 0 deletions