Skip to content
Commit f141156e authored by Argyrios Kyrtzidis's avatar Argyrios Kyrtzidis
Browse files

In MemoryBuffer::getOpenFile() don't verify that the mmap'ed

file buffer is null-terminated.

If the file is smaller than we thought, mmap will not allow dereferencing
past the pages that are enough to cover the actual file size,
even though we asked for a larger address range.

rdar://11612916

llvm-svn: 160075
parent 6d7833f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment