Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1007)

Unified Diff: patches/04_parse_extension_descriptor_null_check.patch

Issue 2364793002: Revert "Uprev libmtp to 1.1.12" (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libmtp@master
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « patches/03_enable_ptp_support.patch ('k') | patches/07_fix_strcpy_in_ptp_unpack_ptptime.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: patches/04_parse_extension_descriptor_null_check.patch
diff --git a/patches/04_parse_extension_descriptor_null_check.patch b/patches/04_parse_extension_descriptor_null_check.patch
new file mode 100644
index 0000000000000000000000000000000000000000..eef68269fe763f9bbe050d417a952d00eb631e6d
--- /dev/null
+++ b/patches/04_parse_extension_descriptor_null_check.patch
@@ -0,0 +1,15 @@
+Index: src/libmtp.c
+===================================================================
+--- src/libmtp.c (revision 148643)
++++ src/libmtp.c (working copy)
+@@ -1728,6 +1728,10 @@
+ int start = 0;
+ int end = 0;
+
++ /* NULL on Canon A70 */
++ if (!desc)
++ return;
++
+ /* descriptors are divided by semicolons */
+ while (end < strlen(desc)) {
+ /* Skip past initial whitespace */
« no previous file with comments | « patches/03_enable_ptp_support.patch ('k') | patches/07_fix_strcpy_in_ptp_unpack_ptptime.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698