From b66e356864b2d89e41fe7908740c048e4992730b Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 13 Aug 2004 12:37:56 -0700 Subject: [PATCH] Fix nonterminated ident matching. Found by Dave Jones and 'valgrind'. --- parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parse.c b/parse.c index f5aba1ba..b8eba3fd 100644 --- a/parse.c +++ b/parse.c @@ -791,7 +791,7 @@ static struct token *parse_asm(struct token *token, struct statement *stmt) struct expression *expr; stmt->type = STMT_ASM; - if (match_idents(token, &__volatile___ident, &volatile_ident)) { + if (match_idents(token, &__volatile___ident, &volatile_ident, NULL)) { token = token->next; } token = expect(token, '(', "after asm"); @@ -1299,7 +1299,7 @@ static struct token *external_declaration(struct token *token, struct symbol_lis int is_typedef; /* Top-level inline asm? */ - if (match_idents(token, &asm_ident, &__asm___ident, &__asm_ident)) { + if (match_idents(token, &asm_ident, &__asm___ident, &__asm_ident, NULL)) { struct symbol *anon = alloc_symbol(token->pos, SYM_NODE); struct symbol *fn = alloc_symbol(token->pos, SYM_FN); struct statement *stmt; -- 2.11.4.GIT