summaryrefslogtreecommitdiff
path: root/src/lib/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-08-05 15:41:28 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-08-05 15:42:24 +0200
commit4f50a9728dac505d901639cd29baa9f7b2eeb20f (patch)
tree2d3c94c4d05bce3875e5510e5e2ab478bb9b742a /src/lib/eolian
parent3c7e1c9767c7ca232b467790e4bb168a5024dea0 (diff)
eolian: fix false positive use-after-free in parser
The catch here is that check_match results in a long jump under that condition. The static analyzer doesn't know this, so declare intent. CID1402703
Diffstat (limited to 'src/lib/eolian')
-rw-r--r--src/lib/eolian/eo_parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eolian/eo_parser.c b/src/lib/eolian/eo_parser.c
index de6a9bc789..da606f91ca 100644
--- a/src/lib/eolian/eo_parser.c
+++ b/src/lib/eolian/eo_parser.c
@@ -217,6 +217,7 @@ parse_c_name(Eo_Lexer *ls)
217 { 217 {
218 eina_stringshare_del(cname); 218 eina_stringshare_del(cname);
219 check_match(ls, ')', '(', pline, pcol); 219 check_match(ls, ')', '(', pline, pcol);
220 return NULL; /* unreachable */
220 } 221 }
221 return cname; 222 return cname;
222} 223}