You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pcre2posix: additional updates for recent changes (#338)
* pcre2posix: make code warning free and update ChangeLog
Somehow previous fix was not ammended to include this code change,
take the opportunity to update ChangeLog and do other cleanup so
it will be at least worth a PR.
Those found responsible have been sacked
* pcre2posix: fix crash on recent regerror code
Since 0710ce2 (pcre2posix: avoid snprintf quirks in regerror (#333),
2023-11-15), a call for snprintf was replaced by a pair of strncpy
and buf[errbuf_size - 1] = 0, but it didn't account for the case
where errbuf_size == 0.
Make the code conditional to mimic the original logic and avoid
crashing.
* doc: document that the POSIX interface is not POSIX compatible
POSIX 1003.1-2008 requires that regoff_t be at least as large as
ssize_t or ptrdiff_t, but we use int and therefore any match is
restricted to what that can hold, even in 64-bit architectures.
0 commit comments