0 terminate string field that is later strduped (AFL)

This commit is contained in:
Marcus Meissner
2017-07-27 13:35:39 +02:00
parent 4fdfdc5b56
commit f1c69dfe89

View File

@@ -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; i<PTP_CANON_FilenameBufferLen; i++)
fe->Filename[i]=(char)data[PTP_cefe_Filename+i];
fe->Filename[PTP_CANON_FilenameBufferLen-1] = 0;
}