From ea301b53f88344d84df01d98231050429ac23ce3 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Fri, 5 Nov 2021 12:15:57 -0400 Subject: [PATCH] Corrected a case of a missing variable initialization in the case of reading a bad "bloat-all" statement in a techfile. This prevents magic from eventually segfaulting when exercising the recipe in which the bad statement occurs. --- cif/CIFtech.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cif/CIFtech.c b/cif/CIFtech.c index fa9c9e29..c90f63df 100644 --- a/cif/CIFtech.c +++ b/cif/CIFtech.c @@ -1240,6 +1240,7 @@ bloatCheck: } } TechError("Not all bloat layers fall in the same plane.\n"); + bloats->bl_plane = 0; /* Prevents magic from segfaulting */ bloatDone: break; case CIFOP_NET: