[compiler-rt] PATCH: Properly read /proc/self/smaps in nohugepage_test.cc
Kostya Serebryany
kcc at google.com
Fri Mar 6 11:36:17 PST 2015
r231502, thanks!
On Fri, Mar 6, 2015 at 11:25 AM, H.J. Lu <hjl.tools at gmail.com> wrote:
> 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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150306/820a42f4/attachment.html>
More information about the llvm-commits
mailing list