[all-commits] [llvm/llvm-project] ae8527: [MemoryLocation] Support memcpy_chk in getForArgum...

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Nov 24 11:18:17 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ae852750b34a842c33e0cc94aafd331742f980f0
      https://github.com/llvm/llvm-project/commit/ae852750b34a842c33e0cc94aafd331742f980f0
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-11-24 (Thu, 24 Nov 2022)

  Changed paths:
    M llvm/lib/Analysis/MemoryLocation.cpp
    M llvm/test/Analysis/BasicAA/libfuncs.ll

  Log Message:
  -----------
  [MemoryLocation] Support memcpy_chk in getForArgument.

Similar to 9f9e8ba114ce, add support for memcyp_chk to
MemoryLocation::getForArgument.

The size argument for memcpy_chk is an upper bound for the size of the
pointer argument. memcpy_chk may read/write less than the specified length,
if it exceeds the specified max size and aborts.

Reviewed By: xbolva00, jdoerfert

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




More information about the All-commits mailing list