From: Bruno Haible Date: Sun, 24 Sep 2017 09:30:59 +0000 (+0200) Subject: libintl: Fix pointer use after free. X-Git-Tag: v0.20~449 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d99286ed7fe5a0de3a9f33e34df14a75f8d40398;p=thirdparty%2Fgettext.git libintl: Fix pointer use after free. * gettext-runtime/intl/loadmsgcat.c (_nl_load_domain): Perform the same lock deallocation outside libc as in libc (patch from 2013-09-06). --- diff --git a/gettext-runtime/intl/loadmsgcat.c b/gettext-runtime/intl/loadmsgcat.c index 42465d19f..beb52a3ac 100644 --- a/gettext-runtime/intl/loadmsgcat.c +++ b/gettext-runtime/intl/loadmsgcat.c @@ -1307,6 +1307,8 @@ _nl_load_domain (struct loaded_l10nfile *domain_file, { #ifdef _LIBC __libc_rwlock_fini (domain->conversions_lock); +#else + gl_rwlock_destroy (domain->conversions_lock); #endif goto invalid; }