diff options
| author | Florian Mayer <fmayer@google.com> | 2025-11-20 15:44:58 -0800 |
|---|---|---|
| committer | Florian Mayer <fmayer@google.com> | 2025-11-20 15:44:58 -0800 |
| commit | da1d82491dfa34c08534ea747f0ceedef0bd33be (patch) | |
| tree | 2f4f18d335550ee1618612783a10ebdddf1febef /lldb/source/Host/common/StreamFile.cpp | |
| parent | a5fb057dd9a7cdc777f0ce940d3e28421dbb5a4a (diff) | |
| parent | 49e46a57cc1575271179c8c9c6fec5639781e9c6 (diff) | |
[𝘀𝗽𝗿] changes introduced through rebaseusers/fmayer/spr/main.ubsan-add-fsanitize-preserve-runtime-flag
Created using spr 1.3.7
[skip ci]
Diffstat (limited to 'lldb/source/Host/common/StreamFile.cpp')
| -rw-r--r-- | lldb/source/Host/common/StreamFile.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Host/common/StreamFile.cpp b/lldb/source/Host/common/StreamFile.cpp index 099980a0993c..131412d81983 100644 --- a/lldb/source/Host/common/StreamFile.cpp +++ b/lldb/source/Host/common/StreamFile.cpp @@ -27,7 +27,8 @@ StreamFile::StreamFile(int fd, bool transfer_ownership) : Stream() { } StreamFile::StreamFile(FILE *fh, bool transfer_ownership) : Stream() { - m_file_sp = std::make_shared<NativeFile>(fh, transfer_ownership); + m_file_sp = std::make_shared<NativeFile>(fh, File::eOpenOptionWriteOnly, + transfer_ownership); } StreamFile::StreamFile(const char *path, File::OpenOptions options, |
