[compiler-rt] PATCH: Properly read /proc/self/smaps in nohugepage_test.cc

H.J. Lu hjl.tools at gmail.com
Fri Mar 6 11:25:55 PST 2015


This patch fixes 2 problems in FileToString:

1. /proc/self/smaps may be bigger than 1 << 14.  On my machine, it is
26KB.
2. The read system call may return a partially filled buffer.  We need
to check the return value from read.


-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Properly-read-proc-self-smaps-in-nohugepage_test.cc.patch
Type: text/x-patch
Size: 1626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150306/b292910e/attachment.bin>


More information about the llvm-commits mailing list