mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
* linespec.c (decode_line_1): Skip argptr over a leading
double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
This commit is contained in:
parent
3cc122b3fe
commit
91c1720e68
@ -1,3 +1,8 @@
|
||||
2001-03-14 Keith Seitz <keiths@cygnus.com>
|
||||
|
||||
* linespec.c (decode_line_1): Skip argptr over a leading
|
||||
double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
|
||||
|
||||
2001-03-14 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* config/djgpp/fnchange.lst (ia64-aix-nat.c): Add entry.
|
||||
|
@ -612,10 +612,10 @@ decode_line_1 (char **argptr, int funfirstline, struct symtab *default_symtab,
|
||||
|
||||
s = NULL;
|
||||
p = *argptr;
|
||||
if (p[0] == '"')
|
||||
if (**argptr == '"')
|
||||
{
|
||||
is_quote_enclosed = 1;
|
||||
p++;
|
||||
(*argptr)++;
|
||||
}
|
||||
else
|
||||
is_quote_enclosed = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user