commit | f1918e17fc9bf092eb1f36bc212c4b822bb8c32e | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Mon Jul 15 10:14:17 2024 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Mon Jul 15 10:14:17 2024 +0200 |
tree | 039d143d1ddfd0bf7d136f6e466516039faa37ae | |
parent | e55443f5ce6c3fc0a4cbb0b00bf3930a5802c501 [diff] |
parser yang BUGFIX avoid accessing memory after input buffer
diff --git a/src/parser_yang.c b/src/parser_yang.c index 58449ae..9fef72a 100644 --- a/src/parser_yang.c +++ b/src/parser_yang.c
@@ -838,6 +838,8 @@ /* fall through */ default: MOVE_INPUT(ctx, 1); + /* fall through */ + case '\0': LOGVAL_PARSER(ctx, LY_VCODE_INSTREXP, (int)(ctx->in->current - word_start), word_start, "a keyword followed by a separator"); return LY_EVALID;