From 8f2dc63d0126277726ee233bd46f99500f5e5a2d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 8 Dec 2022 10:46:59 +0100 Subject: image_cbf_read: Abort if panel unpack fails --- libcrystfel/src/image-cbf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/image-cbf.c b/libcrystfel/src/image-cbf.c index ecbc3209..b8f09a1f 100644 --- a/libcrystfel/src/image-cbf.c +++ b/libcrystfel/src/image-cbf.c @@ -640,7 +640,10 @@ int image_cbf_read(struct image *image, return 1; } - unpack_panels(image, dtempl, data, w, h); + if ( unpack_panels(image, dtempl, data, w, h) ) { + ERROR("Failed to read CBF data\n"); + return 1; + } free(data); //cbf_fill_in_beam_parameters(image->beam, f, image); -- cgit v1.2.3