From 6b1365708d6784b72a5a8dd8cd23083747a1137b Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Thu, 7 Oct 2021 10:58:21 -0400 Subject: [PATCH] Made another correction to the recent change in ext2spice.c where an out-of-bounds array access occurs that can cause bad output at best and a crash condition at worst. --- VERSION | 2 +- ext2spice/ext2spice.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 76b8cff1..b7fe020b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.214 +8.3.215 diff --git a/ext2spice/ext2spice.c b/ext2spice/ext2spice.c index 16ea8584..ce69c8fa 100644 --- a/ext2spice/ext2spice.c +++ b/ext2spice/ext2spice.c @@ -1803,6 +1803,7 @@ topVisit(def, doStub) for (nodeName = sname; nodeName != NULL; nodeName = nodeName->efnn_next) { portidx = nodeName->efnn_port; + if (portidx < 0) continue; /* If view is abstract, rely on the given port name, not * the node. Otherwise, artifacts of the abstract view