[PATCH] D72011: [sanitizers][windows] Global/LocalAlloc interception and tests

Matthew G McGovern via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 30 12:27:04 PST 2019


mcgov created this revision.
mcgov added reviewers: vitalybuka, rnk, mstorsjo.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.

GlobalAlloc and LocalAlloc are windows allocators that are frequently used in some older code bases. This adds interception and tests for those allocators with similar restrictions to the HeapAlloc and RtlHeapAllocate interceptors: moveable memory is not yet supported.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D72011

Files:
  compiler-rt/lib/asan/asan_malloc_win.cc
  compiler-rt/lib/interception/interception_win.cc
  compiler-rt/test/asan/TestCases/Windows/dll_host.cc
  compiler-rt/test/asan/TestCases/Windows/globalalloc.cc
  compiler-rt/test/asan/TestCases/Windows/globalalloc_doublefree.cc
  compiler-rt/test/asan/TestCases/Windows/globalalloc_flags_fallback.cc
  compiler-rt/test/asan/TestCases/Windows/globalalloc_huge.cc
  compiler-rt/test/asan/TestCases/Windows/globalalloc_sanity.cc
  compiler-rt/test/asan/TestCases/Windows/globalalloc_transfer.cc
  compiler-rt/test/asan/TestCases/Windows/globalalloc_uaf.cc
  compiler-rt/test/asan/TestCases/Windows/globalalloc_zero_size.cc
  compiler-rt/test/asan/TestCases/Windows/globalrealloc.cc
  compiler-rt/test/asan/TestCases/Windows/heapalloc_freenull.cc
  compiler-rt/test/asan/TestCases/Windows/heapalloc_huge.cc
  compiler-rt/test/asan/TestCases/Windows/localalloc.cc
  compiler-rt/test/asan/TestCases/Windows/localalloc_doublefree.cc
  compiler-rt/test/asan/TestCases/Windows/localalloc_flags_fallback.cc
  compiler-rt/test/asan/TestCases/Windows/localalloc_huge.cc
  compiler-rt/test/asan/TestCases/Windows/localalloc_sanity.cc
  compiler-rt/test/asan/TestCases/Windows/localalloc_uaf.cc
  compiler-rt/test/asan/TestCases/Windows/localalloc_zero_size.cc
  compiler-rt/test/asan/TestCases/Windows/localrealloc.cc
  compiler-rt/test/asan/TestCases/Windows/localrealloc_transfer.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72011.235625.patch
Type: text/x-patch
Size: 31731 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191230/34c6aaa6/attachment.bin>


More information about the llvm-commits mailing list