096e2ba8e4
Fixes CVE-2022-1552 and CVE-2022-2625. Change-Id: I4964c43fefc94f12a16c45d8727ae41cf1ce278b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140458 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
11 lines
310 B
Text
11 lines
310 B
Text
--- src/port/chklocale.c
|
|
+++ src/port/chklocale.c
|
|
@@ -220,7 +220,7 @@
|
|
{
|
|
r = malloc(16); /* excess */
|
|
if (r != NULL)
|
|
- sprintf(r, "CP%u", loct->locinfo->lc_codepage);
|
|
+ sprintf(r, "CP%u", ((struct __crt_locale_data_public *) loct->locinfo)->_locale_lc_codepage);
|
|
_free_locale(loct);
|
|
}
|
|
#else
|