mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
Modified Files:
ChangeLog c-exp.y
* c-exp.y(yylex): fix potential memory overflow.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
Tue Mar 15 11:40:43 1994 Kung Hsu (kung@mexican.cygnus.com)
|
||||
|
||||
* c-exp.y(yylex): fix potential memory overflow.
|
||||
|
||||
Tue Mar 15 10:33:28 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||
|
||||
* environ.c (set_in_environ): Eliminate special handling of PATH and
|
||||
|
||||
@@ -1573,7 +1573,7 @@ yylex ()
|
||||
struct symbol *cur_sym;
|
||||
/* As big as the whole rest of the expression, which is
|
||||
at least big enough. */
|
||||
char *tmp = alloca (strlen (namestart));
|
||||
char *tmp = alloca (strlen (namestart)+1);
|
||||
|
||||
memcpy (tmp, namestart, p - namestart);
|
||||
tmp[p - namestart] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user