projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c080950
)
Correct anchor underflow in case of error in parse_microsoft_extended_decl_modifier().
author
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 26 Apr 2012 17:13:24 +0000
(19:13 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 26 Apr 2012 17:13:24 +0000
(19:13 +0200)
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
1644fa3
..
601fa46
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-2673,7
+2673,7
@@
static attribute_t *parse_microsoft_extended_decl_modifier(attribute_t *first)
attribute_t *attribute
= parse_microsoft_extended_decl_modifier_single();
if (attribute == NULL)
-
goto end_error
;
+
break
;
*anchor = attribute;
anchor = &attribute->next;
@@
-2681,10
+2681,7
@@
static attribute_t *parse_microsoft_extended_decl_modifier(attribute_t *first)
rem_anchor_token(')');
expect(')', end_error);
- return first;
-
end_error:
- rem_anchor_token(')');
return first;
}