aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/Object.cpp
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2019-04-05 20:17:03 +0000
committerVitaly Buka <vitalybuka@google.com>2019-04-05 20:17:03 +0000
commit3db6ad2bcfc5fb38343cfd7ce6eb56d9415e2b1e (patch)
treeaeaace02175721f5f948547d00487df853312a3b /llvm/lib/Object/Object.cpp
parent883ab235eea79198089319ccbd938ecf47f3c9dd (diff)
downloadllvm-3db6ad2bcfc5fb38343cfd7ce6eb56d9415e2b1e.zip
llvm-3db6ad2bcfc5fb38343cfd7ce6eb56d9415e2b1e.tar.gz
llvm-3db6ad2bcfc5fb38343cfd7ce6eb56d9415e2b1e.tar.bz2
Use binary write mode in WriteToFile function to avoid appended \r characters on Windows
Summary: When using libfuzzer on Windows, in the contents of a crash sample, bytes that can be mistaken for a \n are replaced by a \r\n sequence. As a consequence, crashes are not reproducible. This patch will open files in binary mode to fix this issue. The patch does not affect POSIX systems. Patch by tuktuk Reviewers: kcc, vitalybuka Reviewed By: vitalybuka Subscribers: dexonsmith, jdoerfert, llvm-commits, #sanitizers Tags: #llvm, #sanitizers Differential Revision: https://reviews.llvm.org/D60008 llvm-svn: 357807
Diffstat (limited to 'llvm/lib/Object/Object.cpp')
0 files changed, 0 insertions, 0 deletions