diff options
author | Bruno Haible <bruno@clisp.org> | 2023-03-09 22:30:17 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-03-09 22:30:17 +0100 |
commit | e62ed464dca2c06eec7945375372b7e4dfdeeb03 (patch) | |
tree | 97c6e93acd44c727117e2d719374aec67b2b7e14 /NEWS | |
parent | 423572741811037a7a6f1127221aaf1fe6842aff (diff) | |
download | gettext-e62ed464dca2c06eec7945375372b7e4dfdeeb03.tar.gz |
xgettext: In language YCP, avoid stack overflow.
* gettext-tools/src/x-ycp.c: Include error-progname.h.
(MAX_NESTING_DEPTH): New macro.
(nesting_depth): New variable.
(extract_parenthesized): Increase and check nesting_depth before calling
extract_parenthesized recursively.
(extract_ycp): Initialize nesting_depth.
* gettext-tools/tests/xgettext-ycp-stackovfl-1: New file.
* gettext-tools/tests/xgettext-ycp-stackovfl-2: New file.
* gettext-tools/tests/xgettext-ycp-stackovfl-3: New file.
* gettext-tools/tests/xgettext-ycp-stackovfl-4: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add them.
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions