2025-10-14 Collin Funk <collin.funk1@gmail.com>
+ getdelim: Avoid the symbol __getdelim with ASAN (regr. 2025-10-13).
+ * lib/stdio.in.h (rpl_getdelim)
+ [__GLIBC__ >= 2 && !__ADDRESS_SANITIZER__]: Don't define to __getdelim
+ so that ___interceptor_getdelim doesn't override our symbol.
+
glob: Ensure --enable-cross-guesses is obeyed (regr. yesterday).
Reported by Bruno Haible in
<https://lists.gnu.org/archive/html/bug-gnulib/2025-10/msg00041.html>.
# undef getdelim
# define getdelim rpl_getdelim
# endif
-# if __GLIBC__ >= 2
+# ifndef __has_feature
+# define __has_feature(a) 0
+# endif
+# if __GLIBC__ >= 2 && !(defined __SANITIZE_ADDRESS__ \
+ || __has_feature (address_sanitizer))
/* Arrange for the inline definition of getline() in <bits/stdio.h>
- to call our getdelim() override. */
+ to call our getdelim() override. Do not use the __getdelim symbol
+ if address sanitizer is in use, otherwise it may be overridden by
+ __interceptor_trampoline___getdelim. */
# define rpl_getdelim __getdelim
# endif
_GL_FUNCDECL_RPL (getdelim, ssize_t,