diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2019-12-30 09:04:51 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2019-12-30 09:04:51 +0100 |
commit | 1997601036b562fe4d10f4a623f151ddd034bf6d (patch) | |
tree | 2a16e8a7e7f0d30172e9d02073205d2ea7bdcf7a /camlibs/polaroid | |
parent | 7ea83d5dc8d6d58aff008e62e240727c70c67e19 (diff) | |
download | libgphoto2-1997601036b562fe4d10f4a623f151ddd034bf6d.tar.gz |
fix the comptype check to be same as above to avoid crashes (AFL)
Diffstat (limited to 'camlibs/polaroid')
-rw-r--r-- | camlibs/polaroid/pdc640.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |