1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-25 10:47:00 +00:00

Fixes: debbugs:12306

* etags.c (consider_token): Always zero-terminate token buffer.
This commit is contained in:
Andreas Schwab 2012-08-31 18:53:48 +02:00
parent 862382df3d
commit 5bf647499a
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-08-31 Andreas Schwab <schwab@linux-m68k.org>
* etags.c (consider_token): Always zero-terminate token buffer.
(Bug#12306)
2012-08-19 Paul Eggert <eggert@cs.ucla.edu>
Rely on <config.h> + <unistd.h> to declare 'environ'.

View File

@ -2878,6 +2878,7 @@ consider_token (register char *str, register int len, register int c, int *c_ext
objdef = omethodtag;
linebuffer_setlen (&token_name, oldlen + len);
memcpy (token_name.buffer + oldlen, str, len);
token_name.buffer[oldlen + len] = '\0';
return TRUE;
}
return FALSE;