0 terminate string field that is later strduped (AFL)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user