https://bugs.webkit.org/show_bug.cgi?id=171026
Reviewed by Carlos Garcia Campos.
* xdgmime/README.webkit:
* xdgmime/src/xdgmimecache.c:
(cache_magic_matchlet_compare_to_data):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@215553
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2017-04-19 Michael Catanzaro <mcatanzaro@igalia.com>
+
+ [GTK] ../../Source/ThirdParty/xdgmime/src/xdgmimecache.c:200:62: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
+ https://bugs.webkit.org/show_bug.cgi?id=171026
+
+ Reviewed by Carlos Garcia Campos.
+
+ * xdgmime/README.webkit:
+ * xdgmime/src/xdgmimecache.c:
+ (cache_magic_matchlet_compare_to_data):
+
2017-03-24 Carlos Garcia Campos <cgarcia@igalia.com>
Unreviewed. Fix the build after r214338.
- Add xdg_mime_get_simple_globs
- s/^#include <config.h>/#include "cmakeconfig.h"/g
+ - Fix invalid pointer arithmetic: https://bugs.webkit.org/show_bug.cgi?id=171026
Changes included from GLib sources:
}
else
{
- valid_matchlet = memcmp(cache->buffer + data_offset, data + i, data_length) == 0;
+ valid_matchlet = memcmp(cache->buffer + data_offset, (unsigned char *)data + i, data_length) == 0;
}
if (valid_matchlet)