Re: [PATCH 4/8] xalloc: new function xreallocarray

2021-10-19 Thread Paul Eggert
On 4/21/21 17:18, Bruno Haible wrote: xnmalloc and XNMALLOC take 2 arguments, whereas xreallocarray takes 3 arguments. It is often possible to express a function with a simple interface as a special case of a more complex function. If, in many use-cases, the simpler function is sufficient, users

Re: heap-buffer overflow when searching for regex @\*

2021-10-19 Thread Benno Schulenberg
Op 19-10-2021 om 00:10 schreef Paul Eggert: > Thanks for the bug report. I reproduced the problem with texinfo and installed > the attached Gnulib patch, which fixed things for me with texinfo. I didn't > quite > follow the 'nano' instructions but I hope this fixes the problem there too. Yes,

[PATCH] regex: improve comment

2021-10-19 Thread Paul Eggert
--- lib/regexec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/regexec.c b/lib/regexec.c index a955aa218..106f9d7ff 100644 --- a/lib/regexec.c +++ b/lib/regexec.c @@ -758,8 +758,7 @@ re_search_internal (const regex_t *preg, const char *string, Idx length,