aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std/numeric
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2020-02-17 17:40:07 +0100
committerBernd Edlinger <bernd.edlinger@hotmail.de>2020-02-19 12:48:54 +0100
commit73d531205083eaf19934b516b37b1cf4940895c7 (patch)
tree5e5393a083a3d6873314120c69276168052f5673 /libstdc++-v3/include/std/numeric
parent51faf07cef9293af544bfacc7d0b320ab90d7d60 (diff)
downloadgcc-73d531205083eaf19934b516b37b1cf4940895c7.zip
gcc-73d531205083eaf19934b516b37b1cf4940895c7.tar.gz
gcc-73d531205083eaf19934b516b37b1cf4940895c7.tar.bz2
Fix -save-temp leaking files in /tmp
And avoid signal handler calling signal unsafe functions, and/or calling unlink with uninitialized memory pointer. 2020-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de> * collect2.c (c_file, o_file): Make const again. (ldout,lderrout, dump_ld_file): Remove. (tool_cleanup): Avoid calling not signal-safe functions. (maybe_run_lto_and_relink): Avoid possible signal handler access to unintialzed memory (lto_o_files). (main): Avoid leaking temp files in $TMPDIR. Initialize c_file/o_file with concat, which avoids exposing uninitialized memory to signal handler, which calls unlink(!). Avoid calling maybe_unlink when the main function returns, since the atexit handler is already doing this. * collect2.h (dump_ld_file, ldout, lderrout): Remove.
Diffstat (limited to 'libstdc++-v3/include/std/numeric')
0 files changed, 0 insertions, 0 deletions