]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: Fix memory overrun while parsing a C++ brace format string.
authorBruno Haible <bruno@clisp.org>
Sun, 12 Nov 2023 00:07:41 +0000 (01:07 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 12 Nov 2023 00:07:41 +0000 (01:07 +0100)
commitc567dde0c0af8bb95b122cd989077b00e23f57e1
treece077789bcc0914b0f7628bda7bb3cb64c4a346e
parente543b20c00faa4b5b7ad36ec67fb1b166218ee17
xgettext: Fix memory overrun while parsing a C++ brace format string.

Found with CHERI on CheriBSD.

* gettext-tools/src/format-c++-brace.c (format_parse): Compare the first
character after ':' against '\0', not '0'.
gettext-tools/src/format-c++-brace.c