]> git.ipfire.org Git - thirdparty/gettext.git/commit
Work around an strtoul() misfeature.
authorBruno Haible <bruno@clisp.org>
Fri, 21 Mar 2025 18:44:33 +0000 (19:44 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 21 Mar 2025 18:44:33 +0000 (19:44 +0100)
commitb8ab4f2bef0ff18cf1ae749c1c81a359a40d0450
tree77bee37f37f30dbda3065c1b9702c073bdadfae9
parentc340457784e524896be43ed8474e97b6c2de135a
Work around an strtoul() misfeature.

* gettext-runtime/src/ngettext.c: Include <ctype.h>.
(main): When parsing a nonnegative number, disallow leading whitespace and sign.
* gettext-tools/tests/tstngettext.c: Include <ctype.h>.
(worker_thread): When parsing a nonnegative number, disallow leading whitespace
and sign.
* gnulib-local/lib/markup.c (unescape_string_inplace): When parsing a numeric
character entity, disallow leading whitespace and sign, and report a too large
number as "non-permitted character" rather than "Numerical result out of range".
* gettext-tools/src/msgfmt.c (main): When parsing the '-a' argument, disallow
leading whitespace and sign and check whether the value is a power of 2.
* gettext-tools/src/read-stringtable.c: Include c-ctype.h.
(comment_line_end): When parsing a line number, disallow leading whitespace and
sign.
gettext-runtime/src/ngettext.c
gettext-tools/src/msgfmt.c
gettext-tools/src/read-stringtable.c
gettext-tools/tests/tstngettext.c
gnulib-local/lib/markup.c