projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cc122b
)
* linespec.c (decode_line_1): Skip argptr over a leading
author
Keith Seitz
<keiths@redhat.com>
Wed, 14 Mar 2001 18:36:45 +0000
(18:36 +0000)
committer
Keith Seitz
<keiths@redhat.com>
Wed, 14 Mar 2001 18:36:45 +0000
(18:36 +0000)
double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
gdb/ChangeLog
patch
|
blob
|
history
gdb/linespec.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index fc5477c371f42f6ccd55f04faa66bbab86f5de9b..a4e0c146b2d4cac1d0275e0782754c8157d36521 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-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.
diff --git
a/gdb/linespec.c
b/gdb/linespec.c
index 266ac6dba77fe59cfc8a79796ad6eb95fc67e7af..3f790cc49c43820edb4835dd9b5d3f3877ebcc30 100644
(file)
--- a/
gdb/linespec.c
+++ b/
gdb/linespec.c
@@
-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;