gettext
8a5b80ae - xgettext: In language Lisp, avoid stack overflow.

Commit
1 year ago
xgettext: In language Lisp, avoid stack overflow. * gettext-tools/src/x-lisp.c: Include error-progname.h. (MAX_NESTING_DEPTH): New macro. (nesting_depth): New variable. (read_object): Increase nesting_depth before calling read_object recursively. Check nesting_depth. (extract_lisp): Initialize nesting_depth. * gettext-tools/tests/xgettext-lisp-stackovfl-1: New file. * gettext-tools/tests/xgettext-lisp-stackovfl-2: New file. * gettext-tools/tests/Makefile.am (TESTS): Add them.
Author
Committer
Parents
Loading