Blame SOURCES/0093-ipmaddr-Avoid-accessing-uninitialized-data.patch

99be8f
From e5d32611010d4694562980b790ed7849342f594b Mon Sep 17 00:00:00 2001
99be8f
From: Andrea Claudi <aclaudi@redhat.com>
99be8f
Date: Mon, 29 Apr 2019 20:08:07 +0200
99be8f
Subject: [PATCH] ipmaddr: Avoid accessing uninitialized data
99be8f
99be8f
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1465646
99be8f
Upstream Status: iproute2.git commit b48a1161f5f9b
99be8f
99be8f
commit b48a1161f5f9b6a0cda399a224bbbf72eba4a5c6
99be8f
Author: Phil Sutter <phil@nwl.cc>
99be8f
Date:   Mon Aug 21 11:27:01 2017 +0200
99be8f
99be8f
    ipmaddr: Avoid accessing uninitialized data
99be8f
99be8f
    Looks like this can only happen if /proc/net/igmp is malformed, but
99be8f
    better be sure.
99be8f
99be8f
    Signed-off-by: Phil Sutter <phil@nwl.cc>
99be8f
---
99be8f
 ip/ipmaddr.c | 2 +-
99be8f
 1 file changed, 1 insertion(+), 1 deletion(-)
99be8f
99be8f
diff --git a/ip/ipmaddr.c b/ip/ipmaddr.c
99be8f
index 4f726fdd976f1..85a69e779563d 100644
99be8f
--- a/ip/ipmaddr.c
99be8f
+++ b/ip/ipmaddr.c
99be8f
@@ -136,7 +136,7 @@ static void read_igmp(struct ma_info **result_p)
99be8f
 
99be8f
 	while (fgets(buf, sizeof(buf), fp)) {
99be8f
 		struct ma_info *ma;
99be8f
-		size_t len;
99be8f
+		size_t len = 0;
99be8f
 
99be8f
 		if (buf[0] != '\t') {
99be8f
 			sscanf(buf, "%d%s", &m.index, m.name);
99be8f
-- 
99be8f
2.20.1
99be8f