From 0ba4073d055be461a6e161face5c3a419dfec6cd Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 28 Feb 2017 22:10:03 +0100 Subject: [PATCH] fix olc info count detection even more (AFL) --- camlibs/ptp2/ptp-pack.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/camlibs/ptp2/ptp-pack.c b/camlibs/ptp2/ptp-pack.c index 30b130108..23f356db3 100644 --- a/camlibs/ptp2/ptp-pack.c +++ b/camlibs/ptp2/ptp-pack.c @@ -1869,11 +1869,11 @@ ptp_unpack_CANON_changes (PTPParams *params, unsigned char* data, int datasize, unsigned int j; entries++; - if (size < 12+2) - break; - for (j=0;j<31;j++) - if (dtoh16a(curdata+12) & (1<= 12+2) { + for (j=0;j<31;j++) + if (dtoh16a(curdata+12) & (1<