Correct mprotect page boundries to round up end page. Fixes PR30905.
authorAlina Sbirlea <asbirlea@google.com>
Sat, 5 Nov 2016 04:22:15 +0000 (04:22 +0000)
committerAlina Sbirlea <asbirlea@google.com>
Sat, 5 Nov 2016 04:22:15 +0000 (04:22 +0000)
commitf802c3f97527b843f118e1ce91a9281483f72448
treed1e037fd84740bb5fa9017c76cecb8acf32743c6
parenta2f12e0a7511ef0c1979a5b9258a1a0101ba4eb0
Correct mprotect page boundries to round up end page. Fixes PR30905.

Summary:
Update the boundries for mprotect.
Patch by Andrew Adams. Fixes PR30905.

Reviewers: loladiro, andrew.w.kaylor, chandlerc

Subscribers: abadams, llvm-commits

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

llvm-svn: 286032
llvm/lib/Support/Unix/Memory.inc