glibc/sysdeps
Joseph Myers f745d78e26 Avoid uninitialized result in sem_open when file does not exist
A static analyzer apparently reported an uninitialized use of the
variable result in sem_open in the case where the file is required to
exist but does not exist.

The report appears to be correct; set result to SEM_FAILED in that
case, and add a test for it.

Note: the test passes for me even without the sem_open fix, I guess
because result happens to get value SEM_FAILED (i.e. 0) when
uninitialized.

Tested for x86_64.
2024-11-08 01:53:48 +00:00
..
aarch64 AArch64: Remove SVE erf and erfc tables 2024-11-01 16:10:41 +00:00
alpha math: Use log1pf from CORE-MATH 2024-11-01 11:27:39 -03:00
arc math: Use log10p1f from CORE-MATH 2024-11-01 11:27:40 -03:00
arm math: Use log10p1f from CORE-MATH 2024-11-01 11:27:40 -03:00
csky math: Use log1pf from CORE-MATH 2024-11-01 11:27:39 -03:00
generic elf: Introduce _dl_relocate_object_no_relro 2024-11-06 10:33:44 +01:00
gnu sysdeps: Re-flow and sort multiline gnu/Makefile definitions 2024-08-07 11:02:03 -03:00
hppa math: Use log10p1f from CORE-MATH 2024-11-01 11:27:40 -03:00
htl stdlib: Make abort/_Exit AS-safe (BZ 26275) 2024-10-08 14:40:12 -03:00
hurd hurd: Move internal functions to internal header 2024-03-23 22:43:07 +01:00
i386 math: Use log10p1f from CORE-MATH 2024-11-01 11:27:40 -03:00
ieee754 math: Fix log10f on some ABIs 2024-11-07 07:59:43 -03:00
loongarch nptl: fix __builtin_thread_pointer detection on LoongArch 2024-11-07 14:08:30 +08:00
m68k math: Use log1pf from CORE-MATH 2024-11-01 11:27:39 -03:00
mach Fix header guard in sysdeps/mach/hurd/x86_64/vm_param.h 2024-10-09 19:16:53 +02:00
microblaze math: Use log1pf from CORE-MATH 2024-11-01 11:27:39 -03:00
mips math: Use log10p1f from CORE-MATH 2024-11-01 11:27:40 -03:00
nios2 math: Use log1pf from CORE-MATH 2024-11-01 11:27:39 -03:00
nptl stdlib: Make abort/_Exit AS-safe (BZ 26275) 2024-10-08 14:40:12 -03:00
or1k math: Use log1pf from CORE-MATH 2024-11-01 11:27:39 -03:00
posix stdlib: Make abort/_Exit AS-safe (BZ 26275) 2024-10-08 14:40:12 -03:00
powerpc math: Use log10p1f from CORE-MATH 2024-11-01 11:27:40 -03:00
pthread Avoid uninitialized result in sem_open when file does not exist 2024-11-08 01:53:48 +00:00
riscv math: Use log10p1f from CORE-MATH 2024-11-01 11:27:40 -03:00
s390 s390x: Update ulps 2024-11-07 20:58:05 +01:00
sh math: Use log1pf from CORE-MATH 2024-11-01 11:27:39 -03:00
sparc math: Use log10p1f from CORE-MATH 2024-11-01 11:27:40 -03:00
unix nptl: initialize rseq area prior to registration 2024-11-07 22:23:49 +01:00
wordsize-32 Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
wordsize-64 Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
x86 x86: Enable non-temporal memset for Hygon processors 2024-08-26 10:01:58 -07:00
x86_64 x86_64: Add exp2m1f with FMA 2024-11-01 11:27:40 -03:00