Re: [PATCH v3 4/6] stdlib: Sync canonicalize with gnulib [BZ #10635] [BZ #26592] [BZ #26341] [BZ #24970]

2020-12-29 Thread Paul Eggert
On 12/29/20 7:39 PM, Paul Eggert wrote: Unfortunately that patch didn't correctly treat size-calculation overflow like other out-of-memory situations. I installed the attached further patch into Gnulib. And even that patch mishandled errno on size-calculation overflow, so I installed the

Re: [PATCH v3 4/6] stdlib: Sync canonicalize with gnulib [BZ #10635] [BZ #26592] [BZ #26341] [BZ #24970]

2020-12-29 Thread Paul Eggert
On 12/29/20 5:21 PM, Paul Eggert wrote: I installed the attached patch into Gnulib to fix the bug in a way I hope is better. Unfortunately that patch didn't correctly treat size-calculation overflow like other out-of-memory situations. I installed the attached further patch into Gnulib. >From 6

FYI, [PATCH] hash: add casts-to-float to avoid clang-10 warnings

2020-12-29 Thread Jim Meyering
I've just pushed the attached: 0001-hash-add-casts-to-float-to-avoid-clang-10-warnings.patch Description: Binary data

Re: [PATCH v3 4/6] stdlib: Sync canonicalize with gnulib [BZ #10635] [BZ #26592] [BZ #26341] [BZ #24970]

2020-12-29 Thread Paul Eggert
On 12/29/20 11:34 AM, Adhemerval Zanella wrote: idx_t len = strlen (end); + if (INT_ADD_OVERFLOW (len, n)) +{ + __set_errno (ENAMETOOLONG); + goto error_nomem; +} The other patches in this glibc patch

Re: bitset: Fix conflict with 'free-posix' module

2020-12-29 Thread Bruno Haible
> The continuous integration uncovered this problem: A testdir with modules > 'bitset' and 'free-posix' fails to build. Similarly, I get a conflict on Ubuntu 18.04: gcc -g -O2 -o test-linkedhash_set test-linkedhash_set.o libtests.a ../gllib/libgnu.a libtests.a ../gllib/libgnu.a libtests.a -

Re: Issue when testing with --as-needed enabled

2020-12-29 Thread Thomas Andrejak
Hello Does someone has any updates on this ? Thanks Regards Le mar. 1 déc. 2020 à 13:56, Thomas Andrejak a écrit : > Hello > > Can you explain what GCC options can interfere with this ? > > Thanks > > Regards > > Le dim. 29 nov. 2020 à 00:18, Thomas Andrejak > a écrit : > >> Hello >> >> Than

[PATCH v3 6/6] stdlib: Add testcase fro BZ #26241

2020-12-29 Thread Adhemerval Zanella
Old implementation of realpath allocates a PATH_MAX using alloca for each symlink in the path, leading to MAXSYMLINKS times PATH_MAX maximum stack usage. The test create a symlink with __eloop_threshold() loops and creates a thread with minimum stack size (obtained through support_small_stack_thre

[PATCH v3 0/6] Multiple fixes to realpath

2020-12-29 Thread Adhemerval Zanella
This is an updated version from previous version synced with more recent gnulib version b29d62dfa. It also contains a testscase for the BZ #26421 and a fix to avoid a regression for BZ #22786. Adhemerval Zanella (6): Import idx.h from gnulib Import filename.h from gnulib malloc: Add scratch

[PATCH v3 1/6] Import idx.h from gnulib

2020-12-29 Thread Adhemerval Zanella
And use to simplify stdlib/canonicalize.c implementation. --- include/idx.h | 114 ++ 1 file changed, 114 insertions(+) create mode 100644 include/idx.h diff --git a/include/idx.h b/include/idx.h new file mode 100644 index 00..024b44ae98 --

[PATCH v3 5/6] support: Add support_small_thread_stack_size

2020-12-29 Thread Adhemerval Zanella
It returns the minimum stack size large enough to cover most internal glibc stack usage. --- support/support_set_small_thread_stack_size.c | 12 +--- support/xthread.h | 2 ++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/support/support_set_s

[PATCH v3 4/6] stdlib: Sync canonicalize with gnulib [BZ #10635] [BZ #26592] [BZ #26341] [BZ #24970]

2020-12-29 Thread Adhemerval Zanella
It sync with gnulib version b29d62dfa with the following change: -- diff --git a/stdlib/canonicalize.c b/stdlib/canonicalize.c index 04fe95253f..c8f085b779 100644 --- a/stdlib/canonicalize.c +++ b/stdlib/canonicalize.c @@ -41,6 +41,7 @@ #include #include #include +#include #ifdef _LIBC #

[PATCH v3 3/6] malloc: Add scratch_buffer_dupfree

2020-12-29 Thread Adhemerval Zanella
It returns a copy of the buffer up to a defined size. It will be used on realpath sync with gnulib. --- include/scratch_buffer.h| 16 + malloc/Makefile | 1 + malloc/Versions | 1 + malloc/scratch_buffer_dupfree.c | 41

[PATCH v3 2/6] Import filename.h from gnulib

2020-12-29 Thread Adhemerval Zanella
And use to simplify stdlib/canonicalize.c implementation. --- include/filename.h | 110 + 1 file changed, 110 insertions(+) create mode 100644 include/filename.h diff --git a/include/filename.h b/include/filename.h new file mode 100644 index 00