diff --git a/backport-Free-dynarray-buffer-after-parsing-nsswitch.conf.patch b/backport-Free-dynarray-buffer-after-parsing-nsswitch.conf.patch new file mode 100644 index 0000000000000000000000000000000000000000..d960131d069970ab969608d017519a198877a8b4 --- /dev/null +++ b/backport-Free-dynarray-buffer-after-parsing-nsswitch.conf.patch @@ -0,0 +1,37 @@ +From af90dc572ad232d05b667c4ce218d499f066b7bc Mon Sep 17 00:00:00 2001 +From: DJ Delorie +Date: Fri, 30 May 2025 21:04:37 -0400 +Subject: [PATCH] nss: free dynarray buffer after parsing nsswitch.conf + +Resolves: swbz 31791 + +Reviewed-by: Collin Funk +--- + nss/nss_action_parse.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/nss/nss_action_parse.c b/nss/nss_action_parse.c +index 2b67a8a2a0..ee3aadf312 100644 +--- a/nss/nss_action_parse.c ++++ b/nss/nss_action_parse.c +@@ -168,13 +168,16 @@ nss_action_list + action_list_init (&list); + if (nss_action_parse (line, &list)) + { ++ nss_action_list retval; + size_t size; + struct nss_action null_service + = { .module = NULL, }; + + action_list_add (&list, null_service); + size = action_list_size (&list); +- return __nss_action_allocate (action_list_begin (&list), size); ++ retval = __nss_action_allocate (action_list_begin (&list), size); ++ action_list_free (&list); ++ return retval; + } + else if (action_list_has_failed (&list)) + { +-- +2.43.7 + diff --git a/glibc.spec b/glibc.spec index a331490a70cce7a42a3be273d5b5a4a678a36f9a..b045364115bdf69bed0fa6ff6f826e56290a4a95 100644 --- a/glibc.spec +++ b/glibc.spec @@ -67,7 +67,7 @@ ############################################################################## Name: glibc Version: 2.38 -Release: 74 +Release: 75 Summary: The GNU libc libraries License: %{all_license} URL: http://www.gnu.org/software/glibc/ @@ -359,13 +359,14 @@ Patch269: i386-Update-___tls_get_addr-to-preserve-vector-regis.patch Patch270: x86-64-Add-GLIBC_ABI_GNU2_TLS-version-BZ-33129.patch Patch271: i386-Also-add-GLIBC_ABI_GNU2_TLS-version-BZ-33129.patch Patch272: i386-Add-GLIBC_ABI_GNU_TLS-version-BZ-33221.patch -Patch273: LoongArch-Update-ulps.patch -Patch274: Add-HWCAP_LOONGARCH_LSPW-from-Linux-6.12-to-bits-hwc.patch -Patch275: loongarch-Provide-stpcpy-in-stpcpy-aligned.S-for-rtl.patch -Patch276: loongarch-Drop-__GI_XXX-for-strcpy-stpcpy-IFUNC-impl.patch -Patch277: x86-64-Don-t-use-SSE-resolvers-for-ISA-level-3-or-ab.patch -Patch278: x86-64-Simplify-minimum-ISA-check-ifdef-conditional-.patch -Patch279: x86-Skip-XSAVE-state-size-reset-if-ISA-level-require.patch +Patch273: backport-Free-dynarray-buffer-after-parsing-nsswitch.conf.patch +Patch274: LoongArch-Update-ulps.patch +Patch275: Add-HWCAP_LOONGARCH_LSPW-from-Linux-6.12-to-bits-hwc.patch +Patch276: loongarch-Provide-stpcpy-in-stpcpy-aligned.S-for-rtl.patch +Patch277: loongarch-Drop-__GI_XXX-for-strcpy-stpcpy-IFUNC-impl.patch +Patch278: x86-64-Don-t-use-SSE-resolvers-for-ISA-level-3-or-ab.patch +Patch279: x86-64-Simplify-minimum-ISA-check-ifdef-conditional-.patch +Patch280: x86-Skip-XSAVE-state-size-reset-if-ISA-level-require.patch #openEuler patch list Patch9000: turn-default-value-of-x86_rep_stosb_threshold_form_2K_to_1M.patch @@ -1601,6 +1602,10 @@ fi %endif %changelog +* Tue Nov 04 2025 jinshuaiyu - 2.38-75 +- Backport patches from glibc upstream 2.38 branch +- Free dynarray buffer after parsing nsswitch.conf + * Mon Nov 03 2025 Qingqing Li - 2.38-74 - x86: Skip XSAVE state size reset if ISA level requires XSAVE - x86-64: Simplify minimum ISA check ifdef conditional with if