glibc/sysdeps
Volker Weißmann 7bb8045ec0 Fix FORTIFY_SOURCE false positive
When -D_FORTIFY_SOURCE=2 was given during compilation,
sprintf and similar functions will check if their
first argument is in read-only memory and exit with
*** %n in writable segment detected ***
otherwise. To check if the memory is read-only, glibc
reads frpm the file "/proc/self/maps". If opening this
file fails due to too many open files (EMFILE), glibc
will now ignore this error.

Fixes [BZ #30932]

Signed-off-by: Volker Weißmann <volker.weissmann@gmx.de>
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
2023-10-04 08:07:43 -03:00
..
aarch64 AArch64: Remove -0.0 check from vector sin 2023-09-26 13:40:07 +01:00
alpha
arc
arm
csky
generic Propagate GLIBC_TUNABLES in setxid binaries 2023-10-02 15:35:05 -04:00
gnu
hppa
htl
hurd
i386
ia64
ieee754
loongarch Revert "LoongArch: Add glibc.cpu.hwcap support." 2023-09-21 09:10:11 +08:00
m68k
mach hurd: Drop REG_GSFS and REG_ESDS from x86_64's ucontext 2023-09-28 00:10:13 +02:00
microblaze
mips mips: dl-machine-reject-phdr: Get rid of alloca. 2023-10-02 12:55:27 +00:00
nios2
nptl
or1k
posix Fix leak in getaddrinfo introduced by the fix for CVE-2023-4806 [BZ #30843] 2023-09-25 01:21:51 +01:00
powerpc fegetenv_and_set_rn now uses the builtins provided by GCC. 2023-09-27 13:55:36 -03:00
pthread
riscv riscv: Add support for XTheadBb in string-fz[a,i].h 2023-09-06 09:27:43 -03:00
s390
sh
sparc
unix Fix FORTIFY_SOURCE false positive 2023-10-04 08:07:43 -03:00
wordsize-32
wordsize-64
x86 x86: Add support for AVX10 preset and vec size in cpu-features 2023-09-29 14:18:42 -05:00
x86_64 hurd: Drop REG_GSFS and REG_ESDS from x86_64's ucontext 2023-09-28 00:10:13 +02:00