summaryrefslogtreecommitdiff
path: root/lib/dfsan/dfsan.cc
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2015-03-23 10:32:28 +0000
committerAlexander Potapenko <glider@google.com>2015-03-23 10:32:28 +0000
commitfd5ab86f3ae74b83e4d2fee38e0af94dd1c264e0 (patch)
tree588c138153be38cb538ab3aac4baead3e3ab09d1 /lib/dfsan/dfsan.cc
parent4d0be6c4675a1b194b469581da6190a97994fba0 (diff)
[libsanitizer] Fix OpenFile() usage in TSan and DFSan.
This is a follow-up for r232936. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@232937 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/dfsan/dfsan.cc')
-rw-r--r--lib/dfsan/dfsan.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dfsan/dfsan.cc b/lib/dfsan/dfsan.cc
index de5b2ce10..5a8da3867 100644
--- a/lib/dfsan/dfsan.cc
+++ b/lib/dfsan/dfsan.cc
@@ -333,7 +333,7 @@ static void InitializeFlags() {
static void dfsan_fini() {
if (internal_strcmp(flags().dump_labels_at_exit, "") != 0) {
- fd_t fd = OpenFile(flags().dump_labels_at_exit, true /* write */);
+ fd_t fd = OpenFile(flags().dump_labels_at_exit, WrOnly);
if (fd == kInvalidFd) {
Report("WARNING: DataFlowSanitizer: unable to open output file %s\n",
flags().dump_labels_at_exit);