[PATCH 5/5] posix: Sync fnmatch with gnulib

2020-12-30 Thread Adhemerval Zanella
It sync with gnulib commit 43ee1a6bf with following changes: --- posix/fnmatch_loop.c +++ ../../gnulib/gnulib-lib/lib/fnmatch_loop.c @@ -978,12 +978,12 @@ bool no_leading_period, int flags, size_t alloca_used) { const CHAR *startp; - ssize_t level; + size_t level; struct patternlist

[PATCH 2/5] posix: Sync glob code with gnulib

2020-12-30 Thread Adhemerval Zanella
It sync with gnulib commit 43ee1a6bf and fixes and use-after-free bug (gnulib commit 717766da8926e36). The main change over gnulib is: --- posix/glob.c +++ lib/glob.c @@ -59,6 +59,12 @@ # define readdir(str) __readdir64 (str) # define getpwnam_r(name, bufp, buf, len, res) \ __getpwnam_r (n

[PATCH 3/5] Sync intprops.h with gnulib

2020-12-30 Thread Adhemerval Zanella
It sync with gnulib commit 43ee1a6bf. Checked on x86_64-linux-gnu. --- include/intprops.h | 70 ++ 1 file changed, 58 insertions(+), 12 deletions(-) diff --git a/include/intprops.h b/include/intprops.h index 6de65b067d..52e60e5e2d 100644 --- a/include/

[PATCH 4/5] Sync flexmember.h with gnulib

2020-12-30 Thread Adhemerval Zanella
It sync with gnulib commit 43ee1a6bf. --- posix/flexmember.h | 25 - 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/posix/flexmember.h b/posix/flexmember.h index 30e6a6b867..1e839f08c2 100644 --- a/posix/flexmember.h +++ b/posix/flexmember.h @@ -33,11 +33,26

[PATCH 1/5] posix: Sync regex code with gnulib

2020-12-30 Thread Adhemerval Zanella
It sync with gnulib commit 43ee1a6bf. The main change is 9682f18e9. (which does not have a meaniful description). Checked on x86_64-linux-gnu. --- posix/regcomp.c| 2 +- posix/regex.h | 17 - posix/regex_internal.c | 19 ++- posix/regex_internal.

Re: mbmemcasecmp2, mbmemcasecoll2 test failures on Solaris OpenIndiana

2020-12-30 Thread Bruno Haible
I wrote: > On FreeBSD 11.0 and 12.0, I see test failures > > FAIL: test-mbmemcasecmp2.sh > === > > ../../gltests/test-mbmemcasecmp.h:359: assertion 'my_casecmp (input2, SIZEOF > (input2), input3, SIZEOF (input3)) == 0' failed > Abort trap (core dumped) > FAIL test-mbmemca

getlogin tests, getlogin_r tests: Avoid failure on Solaris OpenIndiana

2020-12-30 Thread Bruno Haible
On Solaris 11 OpenIndiana, I'm seeing two test failures: FAIL: test-getlogin === ../../gltests/test-getlogin.c:34: assertion 'buf || err' failed FAIL test-getlogin (exit status: 262) FAIL: test-getlogin_r = ../../gltests/test-getlogin.h:51: assertion '! isatt

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

2020-12-30 Thread Adhemerval Zanella
On 30/12/2020 09:34, Adhemerval Zanella wrote: > > > On 29/12/2020 22:21, Paul Eggert wrote: >> On 12/29/20 11:34 AM, Adhemerval Zanella wrote: >>>    idx_t len = strlen (end); >>> +  if (INT_ADD_OVERFLOW (len, n)) >>> +    { >>> +  __set_err

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

2020-12-30 Thread Adhemerval Zanella
On 29/12/2020 22:21, Paul Eggert wrote: > 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; >

Re: [PATCH v3 5/6] support: Add support_small_thread_stack_size

2020-12-30 Thread Florian Weimer
* Adhemerval Zanella via Libc-alpha: > It returns the minimum stack size large enough to cover most internal > glibc stack usage. Looks okay to me.