From 10a6c8635f2a184033d6f741dd630519fe193cd4 Mon Sep 17 00:00:00 2001 From: "R. Timothy Edwards" Date: Thu, 5 Feb 2026 17:57:43 -0500 Subject: [PATCH] Corrected an error with the new "extresist" code which fails to set the location of a node which was previously read as a port. But the port location was not set when reading the port, only the drivepoint, so the location is undefined and can cause a program crash. --- resis/ResReadExt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/resis/ResReadExt.c b/resis/ResReadExt.c index e64f0df1..93fc640d 100644 --- a/resis/ResReadExt.c +++ b/resis/ResReadExt.c @@ -202,13 +202,14 @@ ResReadNode(int argc, char *argv[]) entry = HashFind(&ResNodeTable, argv[NODES_NODENAME]); node = ResExtInitNode(entry); + node->location.p_x = atoi(argv[NODES_NODEX]); + node->location.p_y = atoi(argv[NODES_NODEY]); + /* If this node was previously read as a port, then don't change the - * location. + * node type, which is tracking the type at the drivepoint. */ if (!(node->status & PORTNODE)) { - node->location.p_x = atoi(argv[NODES_NODEX]); - node->location.p_y = atoi(argv[NODES_NODEY]); node->type = DBTechNameType(argv[NODES_NODETYPE]); }