Commit 5606551f authored by Niels Möller's avatar Niels Möller

sexp-conv: Fail with an error message for unexpected ']' characters.

Fixes crash reported by Hanno Böck.
parent 10a857e0
2016-02-16 Niels Möller <nisse@lysator.liu.se>
* tools/parse.c (sexp_parse): Fail with an error message for
unexpected ']' characters. Fixes crash reported by Hanno Böck.
Also handle SEXP_DISPLAY (internal error) explicitly, without a
default clause.
2016-01-28 Niels Möller <nisse@lysator.liu.se>
* Released nettle-3.2.
......
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment