From f1c69dfe89f0acbd2cdc488cbb9b21e9ccf4ce39 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 27 Jul 2017 13:35:39 +0200 Subject: [PATCH] 0 terminate string field that is later strduped (AFL) --- camlibs/ptp2/ptp-pack.c | 1 + 1 file changed, 1 insertion(+) diff --git a/camlibs/ptp2/ptp-pack.c b/camlibs/ptp2/ptp-pack.c index 9f3368df7..248f0d9da 100644 --- a/camlibs/ptp2/ptp-pack.c +++ b/camlibs/ptp2/ptp-pack.c @@ -1555,6 +1555,7 @@ ptp_unpack_Canon_EOS_FE (PTPParams *params, unsigned char* data, unsigned int si fe->Time=(time_t)dtoh32a(&data[PTP_cefe_Time]); for (i=0; iFilename[i]=(char)data[PTP_cefe_Filename+i]; + fe->Filename[PTP_CANON_FilenameBufferLen-1] = 0; }