]> git.ipfire.org Git - thirdparty/gettext.git/commit
msgfmt: Fix another buffer overrun.
authorBruno Haible <bruno@clisp.org>
Fri, 12 Apr 2019 19:56:00 +0000 (21:56 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 12 Apr 2019 19:57:35 +0000 (21:57 +0200)
commitbe29c74ef5d161047ec7caa757a91c1470e34995
treedc46c16c2c65bd2322789ea7f0976bd5231bf6fb
parent7413970c5d0edbdefc437de2698e0c3f67ea8e19
msgfmt: Fix another buffer overrun.

Reported and patch by Joshua Root <jmr@macports.org>
at <https://savannah.gnu.org/bugs/?56126>.

* gettext-tools/src/write-java.c (write_java_msgid): Allocate memory for the
trailing NUL byte as well.
* gettext-tools/src/write-csharp.c (write_csharp_msgid): Likewise.
gettext-tools/src/write-csharp.c
gettext-tools/src/write-java.c