diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2017-01-05 10:17:42 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2017-01-05 10:17:42 +0100 |
commit | ec0887fffd4640c9de39656446d866b6c3fe7ba8 (patch) | |
tree | 6d8fce909b949b46dce610c07493be059c94c489 | |
parent | 06309046f59c332d8a7e179bf2a0a4582d9577ee (diff) | |
download | libgphoto2-ec0887fffd4640c9de39656446d866b6c3fe7ba8.tar.gz |
allocate enough memroy for BulbExposureTime debug (AFL)
-rw-r--r-- | camlibs/ptp2/ptp-pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camlibs/ptp2/ptp-pack.c b/camlibs/ptp2/ptp-pack.c index c187429c7..c66de581e 100644 --- a/camlibs/ptp2/ptp-pack.c +++ b/camlibs/ptp2/ptp-pack.c @@ -2494,7 +2494,7 @@ ptp_unpack_CANON_changes (PTPParams *params, unsigned char* data, int datasize, break; case PTP_EC_CANON_EOS_BulbExposureTime: ce[i].type = PTP_CANON_EOS_CHANGES_TYPE_UNKNOWN; - ce[i].u.info = malloc(strlen("BulbExposureTime 123456789")); + ce[i].u.info = malloc(strlen("BulbExposureTime 123456789012345678")); sprintf (ce[i].u.info, "BulbExposureTime %d", dtoh32a(curdata+8)); break; case PTP_EC_CANON_EOS_ObjectRemoved: |