]> git.ipfire.org Git - thirdparty/gettext.git/commit
msgfmt: Fix a buffer overrun.
authorBruno Haible <bruno@clisp.org>
Wed, 10 Apr 2019 21:49:09 +0000 (23:49 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 10 Apr 2019 21:49:09 +0000 (23:49 +0200)
commitbf385f1488f7b6effc3ffe2d668e7e0b5f621ab4
tree9aab34d9034594361a8b0437943d1f765ce9b6a3
parentbf3a7355cb6fad693849705a5e9dbe4efc2c24d4
msgfmt: Fix a buffer overrun.

Reported by Tobi Schäfer at <https://trac.macports.org/ticket/58323>,
via Ryan Schmidt <@ryandesign.com> at <https://savannah.gnu.org/bugs/?56112>.
Patch proposed by Joshua Root.

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