Re: [PATCH 07/17] Regex: Additional memory management checks.

2017-12-20 Thread arnold
Hi Paul. Paul Eggert wrote: > On 12/08/2017 01:16 AM in > Arnold > Robbins wrote: > > + /* some malloc()-checkers don't like zero allocations */ > > Which checkers are these? Lord only knows. That change has been in gawk's regex fo

Re: [PATCH 07/17] Regex: Additional memory management checks.

2017-12-19 Thread Paul Eggert
On 12/08/2017 01:16 AM in Arnold Robbins wrote: + /* some malloc()-checkers don't like zero allocations */ + if (preg->re_nsub > 0) dfa->subexp_map = re_malloc (int, preg->re_nsub); + else +dfa->subexp_map = NULL; Which ch