aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/im-zmq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/im-zmq.c b/src/im-zmq.c
index f5e2793d..7e8bd9ac 100644
--- a/src/im-zmq.c
+++ b/src/im-zmq.c
@@ -336,6 +336,8 @@ static int unpack_slab(struct image *image, double *data,
bad = 1;
}
+ if ( isnan(data[idx]) || isinf(data[idx]) ) bad = 1;
+
if ( flags != NULL ) {
int f;