indent(1): Bail out if there's no more space on the parser stack.
authorpfg <pfg@FreeBSD.org>
Sun, 31 Jul 2016 04:58:06 +0000 (04:58 +0000)
committerpfg <pfg@FreeBSD.org>
Sun, 31 Jul 2016 04:58:06 +0000 (04:58 +0000)
commit9cdfe23ce31b1f3b63d9b6a50db5f0dc22c9b715
treec57dda6f1dbbe8ca23a6d2b43d5f2312bf6e5cf5
parent29d3572a134a371772b5b77db7d840b90f638641
indent(1): Bail out if there's no more space on the parser stack.

Also increase the stack size still keeping a conservative value of 256.
This is based on a similar changes done for PostgreSQL which instead
uses a stack size of 1000.

Differential Revision: https://reviews.freebsd.org/D6966  (Partial)
Submitted by: Piotr Stefaniak (with changes)
usr.bin/indent/indent_globs.h
usr.bin/indent/parse.c