bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Paul Eggert
Subject: Re: [PATCH 5/5] posix: Sync fnmatch with gnulib
Date: Thu, 31 Dec 2020 13:54:34 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0

On 12/30/20 12:15 PM, Adhemerval Zanella wrote:

-  ssize_t level;
+  size_t level;

'level' should be ptrdiff_t not ssize_t, for portability to (now-ancient, but still allowed by POSIX) hosts where ssize_t is 32 bits and size_t is 64 bits.

-    CHAR str[];
+    CHAR str[FLEXIBLE_ARRAY_MEMBER];

This assumes C99 flex array members which is fine for glibc but dubious for Gnulib; it should be safer to use __flexarr.

Because otherwise it triggers some glibc regressions:

Thanks for spotting that. I installed the attached patch into Gnulib, which should fix the glibc regressions and the other abovementioned glitches, so that you should now be able to sync fnmatch from Gnulib unchanged.

Attachment: 0002-fnmatch-merge-from-glibc-proposal.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]