glibc/sysdeps
Bruno Haible d082930272 hppa: Fix undefined behaviour in feclearexcept (BZ 30983)
The expression

  (excepts & FE_ALL_EXCEPT) << 27

produces a signed integer overflow when 'excepts' is specified as
FE_INVALID (= 0x10), because
  - excepts is of type 'int',
  - FE_ALL_EXCEPT is of type 'int',
  - thus (excepts & FE_ALL_EXCEPT) is (int) 0x10,
  - 'int' is 32 bits wide.

The patched code produces the same instruction sequence as
previosuly.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2023-12-19 15:12:38 -03:00
..
aarch64 aarch64: correct CFI in rawmemchr (bug 31113) 2023-12-05 12:49:37 +01:00
alpha alpha: Fix fesetexceptflag (BZ 30998) 2023-12-19 15:12:38 -03:00
arc configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
arm elf: Remove LD_PROFILE for static binaries 2023-11-21 16:15:42 -03:00
csky configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
generic elf: Do not duplicate the GLIBC_TUNABLES string 2023-12-19 13:25:45 -03:00
gnu Add TCP_MD5SIG_FLAG_IFINDEX from Linux 5.6 to netinet/tcp.h. 2023-11-28 13:44:47 +01:00
hppa hppa: Fix undefined behaviour in feclearexcept (BZ 30983) 2023-12-19 15:12:38 -03:00
htl htl: move pthread_attr_setdetachstate into libc 2023-08-24 01:57:22 +02:00
hurd hurd: Fix using interposable hurd_thread_self 2023-05-19 20:45:51 +02:00
i386 x86: Do not raises floating-point exception traps on fesetexceptflag (BZ 30990) 2023-12-19 15:12:38 -03:00
ia64 elf: Remove LD_PROFILE for static binaries 2023-11-21 16:15:42 -03:00
ieee754 math: Add new exp10 implementation 2023-12-04 15:52:11 +00:00
loongarch elf: Remove LD_PROFILE for static binaries 2023-11-21 16:15:42 -03:00
m68k elf: Remove LD_PROFILE for static binaries 2023-11-21 16:15:42 -03:00
mach hurd: [!__USE_MISC] Do not #undef BSD macros in ioctls 2023-12-02 21:26:50 +01:00
microblaze configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
mips mips: dl-machine-reject-phdr: Get rid of alloca. 2023-10-02 12:55:27 +00:00
nios2 configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
nptl Fix misspellings in sysdeps/ -- BZ 25337 2023-05-30 23:02:29 +00:00
or1k configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
posix linux: Decorate __libc_fatal error buffer 2023-11-07 10:27:53 -03:00
powerpc powerpc: Do not raise exception traps for fesetexcept/fesetexceptflag (BZ 30988) 2023-12-19 15:12:34 -03:00
pthread sysdeps: sem_open: Clear O_CREAT when semaphore file is expected to exist [BZ #30789] 2023-11-03 15:19:38 -03:00
riscv riscv: Fix feenvupdate with FE_DFL_ENV (BZ 31022) 2023-12-19 15:12:38 -03:00
s390 elf: Do not duplicate the GLIBC_TUNABLES string 2023-12-19 13:25:45 -03:00
sh elf: Remove LD_PROFILE for static binaries 2023-11-21 16:15:42 -03:00
sparc Do not build sparc32 libgcc functions into static libc 2023-12-19 16:00:11 +00:00
unix elf: Do not duplicate the GLIBC_TUNABLES string 2023-12-19 13:25:45 -03:00
wordsize-32 Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
wordsize-64 hurd: Fix tst-writev test 2023-05-01 13:01:30 +02:00
x86 i686: Do not raise exception traps on fesetexcept (BZ 30989) 2023-12-19 15:12:38 -03:00
x86_64 x86: Do not raises floating-point exception traps on fesetexceptflag (BZ 30990) 2023-12-19 15:12:38 -03:00