diff options
Diffstat (limited to 'chromium/third_party/libmtp/patches/07_fix_strcpy_in_ptp_unpack_ptptime.patch')
-rw-r--r-- | chromium/third_party/libmtp/patches/07_fix_strcpy_in_ptp_unpack_ptptime.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/chromium/third_party/libmtp/patches/07_fix_strcpy_in_ptp_unpack_ptptime.patch b/chromium/third_party/libmtp/patches/07_fix_strcpy_in_ptp_unpack_ptptime.patch deleted file mode 100644 index 4e7f8e8ccc2..00000000000 --- a/chromium/third_party/libmtp/patches/07_fix_strcpy_in_ptp_unpack_ptptime.patch +++ /dev/null @@ -1,27 +0,0 @@ -Index: src/ptp-pack.c -=================================================================== ---- src/ptp-pack.c (revision 148712) -+++ src/ptp-pack.c (working copy) -@@ -533,7 +533,7 @@ - ptp_unpack_PTPTIME (const char *str) { - char ptpdate[40]; - char tmp[5]; -- int ptpdatelen; -+ size_t ptpdatelen; - struct tm tm; - - if (!str) -@@ -543,11 +543,12 @@ - /*ptp_debug (params ,"datelen is larger then size of buffer", ptpdatelen, (int)sizeof(ptpdate));*/ - return 0; - } -- strcpy (ptpdate, str); - if (ptpdatelen<15) { - /*ptp_debug (params ,"datelen is less than 15 (%d)", ptpdatelen);*/ - return 0; - } -+ strncpy (ptpdate, str, sizeof(ptpdate)); -+ ptpdate[sizeof(ptpdate) - 1] = '\0'; - - memset(&tm,0,sizeof(tm)); - strncpy (tmp, ptpdate, 4); |