diff options
author | Niels Möller <nisse@lysator.liu.se> | 2016-02-16 08:11:24 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2016-02-16 08:11:24 +0100 |
commit | 5606551f38a6e163b786a44d734bcd6e25c2d76c (patch) | |
tree | 5cf60e37eaf75bdb15634b77f64fa9320e6f959c /tools | |
parent | 10a857e029e920c55c9e157599c03929f7204889 (diff) | |
download | nettle-5606551f38a6e163b786a44d734bcd6e25c2d76c.tar.gz |
sexp-conv: Fail with an error message for unexpected ']' characters.
Fixes crash reported by Hanno Böck.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/parse.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/parse.c b/tools/parse.c index 008f3f14..388139ad 100644 --- a/tools/parse.c +++ b/tools/parse.c @@ -165,7 +165,10 @@ sexp_parse(struct sexp_parser *parser, case SEXP_CODING_END: die("Unexpected end of transport encoding.\n"); - default: + case SEXP_DISPLAY_END: + die("Unexpected end of display tag.\n"); + + case SEXP_DISPLAY: /* Internal error. */ abort(); } |