Files
llvm/lib/Support
Pavel Labath 4cf866ce04 MemoryBuffer: Add a missing error-check to getOpenFileImpl
Summary:
In case the function was called with a desired read size *and* the file
was not an "mmap()" candidate, the function was falling back to a
"pread()", but it was failing to check the result of that system call.
This meant that the function would return "success" even though the read
operation failed, and it returned a buffer full of uninitialized memory.

Reviewers: rnk, dblaikie

Subscribers: kristina, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66224

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368977 91177308-0d34-0410-b5e6-96231b3b80d8
2019-08-15 08:20:15 +00:00
..
2019-04-08 12:31:12 +00:00
2019-04-27 15:33:22 +00:00
2019-08-12 01:29:46 +00:00
2019-08-06 15:46:45 +00:00
2018-04-02 13:49:35 +00:00
2009-09-06 12:26:28 +00:00
2018-07-30 19:41:25 +00:00
2019-04-23 14:51:27 +00:00
2019-07-09 18:10:06 +00:00