summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2017-07-04 16:03:34 +0000
committerTom Stellard <tstellar@redhat.com>2017-07-04 16:03:34 +0000
commitc17a04c6c8b45d5c467b164dc9b5dc36922dbda3 (patch)
treeeb95cc6df8aa59a94040c9ccfbe0a345ff0a3930 /lldb/packages/Python/lldbsuite/test/python_api
parentde5d250a0b1c23c1c7629d16c67010d80c6504f4 (diff)
downloadbcm5719-llvm-c17a04c6c8b45d5c467b164dc9b5dc36922dbda3.tar.gz
bcm5719-llvm-c17a04c6c8b45d5c467b164dc9b5dc36922dbda3.zip
ELF: Only unlink regular files
Summary: If the output file is a character file (e.g. /dev/null) unlinking it could potentially destabilize the user's system. For example, unlinking causes `lld %input -o /dev/null` to replace /dev/null with a regular file, which will lead to unexpected behavior in other programs that read from /dev/null, and worse than expected peformance for programs that write to /dev/null. This makes it possible to run the test-release.sh script as root. Prior to this patch, the ELF/basic.s test would replace /dev/null with a regular file, which would cause crashes in llvm test-suite programs that piped /dev/null to stdin. For example, if you run the test-relase.sh script as root, Reviewers: ruiu Reviewed By: ruiu Subscribers: emaste, llvm-commits Differential Revision: https://reviews.llvm.org/D34917 llvm-svn: 307092
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud