Subject: Re: bug#76322: Make ctags a thin wrapper around etags

From: Pip Cet <[email-masked]>
Date: Sun, 09 Mar 2025 13:08:32 +0000

Pip Cet <[email-masked]> writes:

> "Paul Eggert" <[email-masked]> writes:
>
>> +  for (; *s; s++)
>> +    {
>> +      if (*s == '"')
>> +        store (d, i, bscount + 1, '\\');
>
> This sholud be i = store (d, i , ...), so we don't lose the
> backslashes.

Also (but much more harmless, no buffer overflow here):

  size_t nargbytes = sizeof etags_program + sizeof option_prefix - 1;

should be

  size_t nargbytes = sizeof option_prefix - 1;

because etags_program is no longer copied into the newly allocated area.

Pip