From ecfdb6641793bab922e1842ee372cf29f4ef44d6 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Thu, 31 Oct 2019 15:19:30 -0400 Subject: [PATCH] Corrected one error in the recent fix for port enumeration in ext2spice (hierarchy on), where the port index was not checked for value -1 (no port) before indexing into the port list. --- ext2spice/ext2spice.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext2spice/ext2spice.c b/ext2spice/ext2spice.c index 168959cf..65eb7326 100644 --- a/ext2spice/ext2spice.c +++ b/ext2spice/ext2spice.c @@ -1485,6 +1485,7 @@ subcktVisit(use, hierName, is_top) char *pname; portidx = nodeName->efnn_port; + if (portidx < 0) continue; if (nodeList[portidx] == NULL) { nodeList[portidx] = nodeName;