]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: In language JavaScript, avoid a crash.
authorBruno Haible <bruno@clisp.org>
Sun, 12 Mar 2023 23:21:50 +0000 (00:21 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 14 Mar 2023 01:57:28 +0000 (02:57 +0100)
commitff78c835ad8aa8a7f00d237eaa4b3f369edcbe1d
treed3a55bf75339f3b4fb9c488e3e0c19707b83634a
parent0baf23d1db7379e980455350fe867d0860871bf4
xgettext: In language JavaScript, avoid a crash.

This avoids a crash
"Assertion `phase2_pushback_length + j < SIZEOF (phase2_pushback)' failed.".

* gettext-tools/src/x-javascript.c (phase2_pushback): Increase size by 1.
* gettext-tools/tests/xgettext-javascript-12: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add it.
gettext-tools/src/x-javascript.c
gettext-tools/tests/Makefile.am
gettext-tools/tests/xgettext-javascript-12 [new file with mode: 0755]