[PATCH] D102376: scudo: Require fault address to be in bounds for UAF.

Evgenii Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 12 16:14:37 PDT 2021


eugenis added inline comments.


================
Comment at: compiler-rt/lib/scudo/standalone/combined.h:1350
+      } else {
+        if (FaultAddr < EntryPtr - getPageSizeCached() ||
+            FaultAddr >= EntryPtr + EntrySize + getPageSizeCached())
----------------
getPageSizeCached is an arbitrary threshold for reporting secondary oob, right? That could use a comment. In general, it would be great to list the assumption reporting code makes about the buffer contents - ex. the fact that allocation-without-deallocation entries are only possible for secondary.



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102376/new/

https://reviews.llvm.org/D102376



More information about the llvm-commits mailing list