diff options
author | Thomas White <taw@physics.org> | 2022-12-08 10:46:59 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2022-12-08 10:54:32 +0100 |
commit | 8f2dc63d0126277726ee233bd46f99500f5e5a2d (patch) | |
tree | b71be5143ef46e756421538fa9666ec008e7f45b | |
parent | 02e278c18be96736bccb8f368d25a61e52a5f12f (diff) |
image_cbf_read: Abort if panel unpack fails
-rw-r--r-- | libcrystfel/src/image-cbf.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |