[compiler-rt] [sanitizer_common] Add experimental flag to tweak dlopen(<main program>) (PR #71715)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 8 13:16:30 PST 2023
================
@@ -6304,10 +6304,38 @@ INTERCEPTOR(int, fclose, __sanitizer_FILE *fp) {
#endif
#if SANITIZER_INTERCEPT_DLOPEN_DLCLOSE
+// Returns 1 if 'suffix' matches the end of 'str', 0 otherwise
+static int internal_is_suffix(const char *suffix, const char *str) {
----------------
vitalybuka wrote:
I guess we usually use `internal_<some libc function>`
This is a new function, so we can use Camel style with bool as return.
And usually we search the second argument in the first.
https://github.com/llvm/llvm-project/pull/71715
More information about the llvm-commits
mailing list