From 1997601036b562fe4d10f4a623f151ddd034bf6d Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 30 Dec 2019 09:04:51 +0100 Subject: [PATCH] fix the comptype check to be same as above to avoid crashes (AFL) --- camlibs/polaroid/pdc640.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camlibs/polaroid/pdc640.c b/camlibs/polaroid/pdc640.c index 543889b15..146f4779a 100644 --- a/camlibs/polaroid/pdc640.c +++ b/camlibs/polaroid/pdc640.c @@ -698,7 +698,7 @@ pdc640_getpic (Camera *camera, int n, int thumbnail, int justraw, CHECK_RESULT (pdc640_transmit_pic (camera->port, cmd, width, thumbnail, *data, *size)); - if (thumbnail || (compression_type == 0 )) { + if (thumbnail || ((compression_type & 3) == 0 )) { /* Process uncompressed data */ CHECK_RESULT (pdc640_processtn (width, height, data, *size));