GNU bug report logs - #76322
Make ctags a thin wrapper around etags

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Sun, 16 Feb 2025 05:22:02 UTC

Severity: wishlist

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pip Cet <pipcet <at> protonmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 76322 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: bug#76322: Make ctags a thin wrapper around etags
Date: Sun, 09 Mar 2025 13:08:32 +0000
Pip Cet <pipcet <at> protonmail.com> writes:

> "Paul Eggert" <eggert <at> cs.ucla.edu> 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





This bug report was last modified 58 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.