[all-commits] [llvm/llvm-project] cc6b86: [sanitizer] Intercept glibc's argp_parse()
Ilya Leoshkevich via All-commits
all-commits at lists.llvm.org
Wed Mar 8 07:08:41 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cc6b86e175da1cf4fa7de98ee99bb9e55e16ac7d
https://github.com/llvm/llvm-project/commit/cc6b86e175da1cf4fa7de98ee99bb9e55e16ac7d
Author: Ilya Leoshkevich <iii at linux.ibm.com>
Date: 2023-03-08 (Wed, 08 Mar 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
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D143330
More information about the All-commits
mailing list