glibc/sysdeps
Adhemerval Zanella c6e0b0b5b0 stdlib: Sync canonicalize with gnulib [BZ #10635] [BZ #26592] [BZ #26341] [BZ #24970]
It sync with gnulib version ae9fb3d66.  The testcase for BZ#23741
(stdlib/test-bz22786.c) is adjusted to check also for ENOMEM.

The patch fixes multiple realpath issues:

  - Portability fixes for errno clobbering on free (BZ#10635).  The
    function does not call free directly anymore, although it might be
    done through scratch_buffer_free.  The free errno clobbering is
    being tracked by BZ#17924.

  - Pointer arithmetic overflows in realpath (BZ#26592).

  - Realpath cyclically call __alloca(path_max) to consume too much
    stack space (BZ#26341).

  - Realpath mishandles EOVERFLOW; stat not needed anyway (BZ#24970).
    The check is done through faccessat now.

Checked on x86_64-linux-gnu and i686-linux-gnu.
2021-01-05 11:33:16 -03:00
..
aarch64 aarch64: push the set of rules before falling into slow path 2021-01-05 09:25:19 +00:00
alpha Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
arc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
arm Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
csky Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
generic Move generic nan-pseudo-number.h to ldbl-96 2021-01-04 14:51:52 +05:30
gnu Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
hppa Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
htl Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
hurd Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
i386 x86: Check IFUNC definition in unrelocated executable [BZ #20019] 2021-01-04 12:01:01 -08:00
ia64 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ieee754 Drop nan-pseudo-number.h usage from tests 2021-01-04 20:49:56 +05:30
m68k Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
mach hurd: Fix mmap(!MAP_FIXED) on bogus address 2021-01-04 20:22:59 +01:00
microblaze Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
mips Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nios2 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nptl Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
posix Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
powerpc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pthread Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
riscv Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
s390 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sh Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sparc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
unix stdlib: Sync canonicalize with gnulib [BZ #10635] [BZ #26592] [BZ #26341] [BZ #24970] 2021-01-05 11:33:16 -03:00
wordsize-32 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
wordsize-64 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
x86 Drop nan-pseudo-number.h usage from tests 2021-01-04 20:49:56 +05:30
x86_64 x86: Check IFUNC definition in unrelocated executable [BZ #20019] 2021-01-04 12:01:01 -08:00