diff options
author | Florian Westphal <fw@strlen.de> | 2023-06-19 22:43:03 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-11-02 11:56:20 +0100 |
commit | 8c9862c9ee50ebeb5b280a12edf8c978c55e7ec3 (patch) | |
tree | c057788dfdd3f5a371f5300730cf98063eaa5f79 /tests/shell/testcases/chains/0018check_jump_loop_1 | |
parent | 596514168e22dc7349db277f4571f5009d7f555e (diff) |
parser: don't assert on scope underflows
commit bb16416ec82599e41043a52887c37157e6f61984 upstream.
close_scope() gets called from the object destructors;
imbalance can cause us to hit assert().
Before:
nft: parser_bison.y:88: close_scope: Assertion `state->scope > 0' failed.
After:
assertion3:4:7-7: Error: too many levels of nesting jump {
assertion3:5:8-8: Error: too many levels of nesting jump
assertion3:5:9-9: Error: syntax error, unexpected newline, expecting '{'
assertion3:7:1-1: Error: syntax error, unexpected end of file
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell/testcases/chains/0018check_jump_loop_1')
0 files changed, 0 insertions, 0 deletions