From a38fa29dac43f74228be39647828d24bb57a5958 Mon Sep 17 00:00:00 2001 From: "R. Timothy Edwards" Date: Tue, 9 Jun 2026 17:41:28 -0400 Subject: [PATCH] Added a check for exts_globSubstratePlane == -1 in ExtBasic.c, because this is the default value used if no substrate types are declared in the tech file; and if so, this would cause an out- of-bounds check. See Issue #523 on github from Darryl Miles. --- extract/ExtBasic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extract/ExtBasic.c b/extract/ExtBasic.c index 0c376378..0764a5f9 100644 --- a/extract/ExtBasic.c +++ b/extract/ExtBasic.c @@ -5130,7 +5130,7 @@ extFindNodes(def, clipArea, subonly) pNum = ExtCurStyle->exts_globSubstratePlane; /* Does the type set of this plane intersect the substrate types? */ - if (TTMaskIntersect(&DBPlaneTypes[pNum], &subsTypesNonSpace)) + if ((pNum != -1) && TTMaskIntersect(&DBPlaneTypes[pNum], &subsTypesNonSpace)) { arg.fra_pNum = pNum; DBSrPaintClient((Tile *) NULL, def->cd_planes[pNum],