From 6737741902295a0345d8327e8d0fb9b11198c02e Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Fri, 8 May 2020 16:44:29 -0400 Subject: [PATCH] Corrected CalmaRdpt() routine to avoid crashing if the cd_client record is uninitialized when calling the rescale routine. --- VERSION | 2 +- calma/CalmaRdpt.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 74d1f38c..9e36f98c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.5 +8.3.6 diff --git a/calma/CalmaRdpt.c b/calma/CalmaRdpt.c index e87949e4..03857648 100644 --- a/calma/CalmaRdpt.c +++ b/calma/CalmaRdpt.c @@ -98,7 +98,9 @@ calmaInputRescale(n, d) { /* Scale the GDS planes in this cell's cd_client record */ Plane **gdsplanes = (Plane **)def->cd_client; - CIFScalePlanes(n, d, gdsplanes); + /* Should not happen, but punt if client record is not set */ + if (def->cd_client != (ClientData)CLIENTDEFAULT) + CIFScalePlanes(n, d, gdsplanes); } }