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

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