From 4154e1f0b2cfc95def02e8bea2b0f1624a672cae Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Sat, 25 Nov 2017 16:09:16 -0500 Subject: [PATCH] Corrected a bug in CIFMakeManhattanPath that can cause a segfault or a hang in rare geometry situations. Same fix as was made to magic version 8.1. --- cif/CIFrdutils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cif/CIFrdutils.c b/cif/CIFrdutils.c index c99e0622..f8d2d824 100644 --- a/cif/CIFrdutils.c +++ b/cif/CIFrdutils.c @@ -876,6 +876,8 @@ path_intersect(pathHead, start, respt) } } } + else if (diagonal == FALSE) + continue; } else if (diagonal == FALSE) continue;