File CVE-2015-7700.patch of Package pngcrush.7660

Index: pngcrush-1.7.85/pngcrush.c
===================================================================
--- pngcrush-1.7.85.orig/pngcrush.c
+++ pngcrush-1.7.85/pngcrush.c
@@ -6046,8 +6046,6 @@ defined(PNG_READ_STRIP_16_TO_8_SUPPORTED
                         if (keep_chunk("sPLT", argv))
                             png_set_sPLT(write_ptr, write_info_ptr,
                                          entries, num_entries);
-                        png_free_data(read_ptr, read_info_ptr,
-                                      PNG_FREE_SPLT, num_entries);
                     }
                 }
 #endif
openSUSE Build Service is sponsored by