mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-04 08:33:55 +02:00
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.
This commit is contained in:
+1
-1
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user