[Bug gdb/24611] dynamic-stack-buffer-overflow in linespec_lexer_lex_string
vries at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Thu May 23 16:01:00 GMT 2019
https://sourceware.org/bugzilla/show_bug.cgi?id=24611
--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
Tentative patch:
...
diff --git a/gdb/linespec.c b/gdb/linespec.c
index f418e03b77..8720eedfb0 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -760,7 +760,10 @@ linespec_lexer_lex_string (linespec_parser *parser)
/* Do not tokenize ABI tags such as "[abi:cxx11]". */
else if (PARSER_STREAM (parser) - start > 4
&& startswith (PARSER_STREAM (parser) - 4, "[abi"))
- ++(PARSER_STREAM (parser));
+ {
+ ++(PARSER_STREAM (parser));
+ continue;
+ }
/* Do not tokenify if the input length so far is one
(i.e, a single-letter drive name) and the next character
...
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list