slackware-current/source/l/glibc/patches/glibc.8a80ee5e2bab17a1f8e1e78fab5c33ac7efa8b29.patch
Patrick J Volkerding 5ff08990e9 Tue Sep 10 21:28:36 UTC 2019
a/glibc-solibs-2.30-x86_64-1.txz:  Upgraded.
a/kernel-firmware-20190909_6c6918a-noarch-1.txz:  Upgraded.
a/kernel-generic-4.19.72-x86_64-1.txz:  Upgraded.
a/kernel-huge-4.19.72-x86_64-1.txz:  Upgraded.
a/kernel-modules-4.19.72-x86_64-1.txz:  Upgraded.
d/kernel-headers-4.19.72-x86-1.txz:  Upgraded.
k/kernel-source-4.19.72-noarch-1.txz:  Upgraded.
l/gdk-pixbuf2-2.38.2-x86_64-1.txz:  Upgraded.
l/glibc-2.30-x86_64-1.txz:  Upgraded.
l/glibc-i18n-2.30-x86_64-1.txz:  Upgraded.
l/glibc-profile-2.30-x86_64-1.txz:  Upgraded.
n/libmilter-8.15.2-x86_64-3.txz:  Rebuilt.
  Use gethostbyname2() since RES_USE_INET6 is removed in glibc-2.30.
n/libqmi-1.22.6-x86_64-1.txz:  Upgraded.
n/postfix-3.4.6-x86_64-2.txz:  Rebuilt.
  Patched to fix removed macros in glibc-2.30.
n/yptools-2.14-x86_64-12.txz:  Rebuilt.
  Patched ypbind-mt for gettid() included in glibc-2.30.
xap/blackbox-0.75-x86_64-1.txz:  Upgraded.
isolinux/initrd.img:  Rebuilt.
kernels/*:  Upgraded.
usb-and-pxe-installers/usbboot.img:  Rebuilt.
2019-09-11 08:59:49 +02:00

40 lines
1.2 KiB
Diff

From 8a80ee5e2bab17a1f8e1e78fab5c33ac7efa8b29 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Wed, 21 Aug 2019 09:25:22 -0700
Subject: [PATCH] Fix bad pointer / leak in regex code
This was found by Coverity (CID 1484201). [BZ#24844]
* posix/regex_internal.c (create_cd_newstate): Fix use of bad
pointer and/or memory leak when storage is exhausted.
diff --git a/posix/regex_internal.c b/posix/regex_internal.c
index 9004ce8..f53ded9 100644
--- a/posix/regex_internal.c
+++ b/posix/regex_internal.c
@@ -1716,15 +1716,19 @@ create_cd_newstate (const re_dfa_t *dfa, const re_node_set *nodes,
{
if (newstate->entrance_nodes == &newstate->nodes)
{
- newstate->entrance_nodes = re_malloc (re_node_set, 1);
- if (__glibc_unlikely (newstate->entrance_nodes == NULL))
+ re_node_set *entrance_nodes = re_malloc (re_node_set, 1);
+ if (__glibc_unlikely (entrance_nodes == NULL))
{
free_state (newstate);
return NULL;
}
+ newstate->entrance_nodes = entrance_nodes;
if (re_node_set_init_copy (newstate->entrance_nodes, nodes)
!= REG_NOERROR)
- return NULL;
+ {
+ free_state (newstate);
+ return NULL;
+ }
nctx_nodes = 0;
newstate->has_constraint = 1;
}
--
2.9.3