summaryrefslogtreecommitdiff
path: root/tests/test_driver.pl
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2022-10-31 01:48:33 -0400
committerPaul Smith <psmith@gnu.org>2022-10-31 02:23:04 -0400
commit38b19976f50af0c898030adcb86320bdfe52a159 (patch)
tree2f4d350dba8ac492185a28546535d9d5df71901c /tests/test_driver.pl
parent1dd52ab472e9dffa0cbdcdc68f196b64ce2abfc4 (diff)
downloadmake-git-38b19976f50af0c898030adcb86320bdfe52a159.tar.gz
Fix issues found by ASAN and Coverity
* tests/test_driver.pl: Preserve the LSAN_OPTIONS variable. * tests/scripts/targets/ONESHELL: Don't set a local variable. * tests/scripts/functions/let: Test empty let variable. * src/posixos.c (osync_parse_mutex): Free existing osync_tmpfile. * src/misc.c (get_tmpfd): Set umask() before invoking mkstemp(). * src/ar.c (ar_parse_name): Check invalid name (shouldn't happen). * src/function.c (define_new_function): Free previous function entry when replacing it with a new one. * src/job.c (child_execute_job): Initialize pid for safety. (construct_command_argv_internal): In oneshell mode ensure that the returned argv has the right format (0th element is a pointer to the entire buffer).
Diffstat (limited to 'tests/test_driver.pl')
-rw-r--r--tests/test_driver.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_driver.pl b/tests/test_driver.pl
index 58a782f6..b64fffb6 100644
--- a/tests/test_driver.pl
+++ b/tests/test_driver.pl
@@ -197,7 +197,7 @@ sub toplevel
'TZ', 'TMPDIR', 'HOME', 'USER', 'LOGNAME', 'PATH',
'LD_LIBRARY_PATH',
# *SAN things
- 'ASAN_OPTIONS', 'UBSAN_OPTIONS',
+ 'ASAN_OPTIONS', 'UBSAN_OPTIONS', 'LSAN_OPTIONS',
# Purify things
'PURIFYOPTIONS',
# Windows-specific things