[all-commits] [llvm/llvm-project] f625ab: [sanitizer] Intercept glibc's argp_parse()

Ilya Leoshkevich via All-commits all-commits at lists.llvm.org
Thu Mar 2 10:22:19 PST 2023


  Branch: refs/heads/iii/endbr
  Home:   https://github.com/llvm/llvm-project
  Commit: f625ab2c6943b1c381ff17fed0f4d5abc0bc10f3
      https://github.com/llvm/llvm-project/commit/f625ab2c6943b1c381ff17fed0f4d5abc0bc10f3
  Author: Ilya Leoshkevich <iii at linux.ibm.com>
  Date:   2023-02-24 (Fri, 24 Feb 2023)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
    M compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
    A compiler-rt/test/sanitizer_common/TestCases/Linux/argp_parse.c

  Log Message:
  -----------
  [sanitizer] Intercept glibc's argp_parse()

Glibc provides the argp_parse() function for parsing command line
arguments [1].

Indicate that argc/argv are read from and arg_index is written to.
Strictly speaking, we also need to indicate that argp is read from,
but this would require describing its layout, and most people use a
static initializer there, so it's not worth the effort.

[1] https://www.gnu.org/software/libc/manual/html_node/Argp.html

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


  Commit: e8559b2e524b9ee0b6f3fa86643a9c05037ebcc4
      https://github.com/llvm/llvm-project/commit/e8559b2e524b9ee0b6f3fa86643a9c05037ebcc4
  Author: Ilya Leoshkevich <iii at linux.ibm.com>
  Date:   2023-02-24 (Fri, 24 Feb 2023)

  Changed paths:
    M clang/lib/Basic/Targets/SystemZ.h
    M llvm/lib/Target/SystemZ/CMakeLists.txt
    M llvm/lib/Target/SystemZ/SystemZ.h
    A llvm/lib/Target/SystemZ/SystemZEndbr.cpp
    M llvm/lib/Target/SystemZ/SystemZInstrInfo.td
    M llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp

  Log Message:
  -----------
  endbr


Compare: https://github.com/llvm/llvm-project/compare/f625ab2c6943%5E...e8559b2e524b


More information about the All-commits mailing list