From 99d1859a44f1200c03ae0453190c46f9c99440ec Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Mon, 17 Mar 2014 16:18:22 +0000 Subject: [PATCH] [trunk] Explicitely reject file4/file6 scenario Update issue 286 --- tests/compare_images.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/compare_images.c b/tests/compare_images.c index 38c36f51..cb1b1301 100644 --- a/tests/compare_images.c +++ b/tests/compare_images.c @@ -771,6 +771,13 @@ int main(int argc, char **argv) /* Comparison of header parameters*/ printf("Step 1 -> Header comparison\n"); + /* check dimensions (issue 286)*/ + if(imageBase->numcomps != imageTest->numcomps ) + { + printf("ERROR: dim mismatch (%d><%d)\n", imageBase->numcomps, imageTest->numcomps); + goto cleanup; + } + for (it_comp = 0; it_comp < imageBase->numcomps; it_comp++) { param_image_diff[it_comp].x0 = 0;