Blame SOURCES/0002-_IceRead-Avoid-possible-use-after-free.patch

fcff97
From 32a9acc48463931e598188e3277c88925a48d7b5 Mon Sep 17 00:00:00 2001
fcff97
From: Olivier Fourdan <ofourdan@redhat.com>
fcff97
Date: Wed, 10 Apr 2019 11:15:11 +0200
fcff97
Subject: [PATCH libICE 2/3] _IceRead: Avoid possible use-after-free
fcff97
fcff97
`_IceRead()` gets called from multiple places which do not expect the
fcff97
connection to be freed.
fcff97
fcff97
Do not free the connection data in `_IceRead()` to avoid potential
fcff97
use-after-free issue in the various callers.
fcff97
fcff97
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
fcff97
---
fcff97
 src/misc.c | 1 -
fcff97
 1 file changed, 1 deletion(-)
fcff97
fcff97
diff --git a/src/misc.c b/src/misc.c
fcff97
index d2e9150..54b179d 100644
fcff97
--- a/src/misc.c
fcff97
+++ b/src/misc.c
fcff97
@@ -242,7 +242,6 @@ _IceRead (
fcff97
 		 */
fcff97
 
fcff97
 		_IceConnectionClosed (iceConn);	    /* invoke watch procs */
fcff97
-		_IceFreeConnection (iceConn);
fcff97
 
fcff97
 		return (0);
fcff97
 	    }
fcff97
-- 
fcff97
2.21.0
fcff97