]> git.ipfire.org Git - thirdparty/gettext.git/commit
Verify that system dependent strings in .mo files are NUL terminated.
authorBruno Haible <bruno@clisp.org>
Sun, 24 Sep 2017 12:25:53 +0000 (14:25 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 24 Sep 2017 12:25:53 +0000 (14:25 +0200)
commit861745b3c53362925eaf3605a334565af378556c
treea245ceb8828d772e38cb4017e4019b255c03870b
parentd99286ed7fe5a0de3a9f33e34df14a75f8d40398
Verify that system dependent strings in .mo files are NUL terminated.

Reported by Jakub Wilk <jwilk@jwilk.net> in
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876498>.

* gettext-runtime/intl/loadmsgcat.c (_nl_load_domain): Bail out if some of the
system-dependent strings has a last static segment that is not NUL terminated.
* gettext-tools/src/read-mo.c (get_sysdep_string): Likewise.
gettext-runtime/intl/loadmsgcat.c
gettext-tools/src/read-mo.c