Changeset 233907 in webkit
- Timestamp:
- Jul 17, 2018 11:08:36 PM (6 years ago)
- Location:
- trunk/Source/ThirdParty
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/ThirdParty/ChangeLog
r233457 r233907 1 2018-07-17 Michael Catanzaro <mcatanzaro@igalia.com> 2 3 [WPE][GTK] Update xdgmime 4 https://bugs.webkit.org/show_bug.cgi?id=187727 5 6 Reviewed by Carlos Garcia Campos. 7 8 * xdgmime/README: 9 * xdgmime/README.webkit: 10 * xdgmime/src/xdgmime.c: 11 (_xdg_mime_mime_type_subclass): 12 * xdgmime/src/xdgmimecache.c: 13 (_xdg_mime_cache_new_from_file): 14 (_xdg_mime_cache_get_mime_type_for_file): 15 (_xdg_mime_cache_mime_type_subclass): 16 1 17 2018-07-03 Michael Catanzaro <mcatanzaro@igalia.com> 2 18 -
trunk/Source/ThirdParty/xdgmime/README
r214339 r233907 1 1 This module is a simple module that parses the proposed MIME spec listed 2 at http://freedesktop.org/. It is currently target ted at version 0.12.2 at http://freedesktop.org/. It is currently targeted at version 0.12. 3 3 There are no formal releases planned for this module, and it is not 4 4 intended to be installed at this time. Rather, it is meant to be used -
trunk/Source/ThirdParty/xdgmime/README.webkit
r233457 r233907 5 5 https://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec/ 6 6 7 Current version is based on revision 9c5802b8da56187c5c6abaf70042d14b12d832a97 Current version is based on revision e70017739ff7643bf2dbbfc8524562cb6ee450ed 8 8 cloned from git://anongit.freedesktop.org/xdg/xdgmime. 9 9 … … 12 12 - Add xdg_mime_get_simple_globs 13 13 - s/^#include <config.h>/#include "cmakeconfig.h"/g 14 - Fix invalid pointer arithmetic: https://bugs.webkit.org/show_bug.cgi?id=17102615 16 Changes included from GLib sources:17 18 - 2542b6f60492fadfb21f2c4a29976c3494c7e6c5 xdgmime: Handle EINTR in open()19 - 83d34f630939aa13539e03895bef87da738c4127 Don't forget to free resources in an early return20 - be7f40185fb2ce884112c1f8a4b196ea65350466 xdgmime: Fix an invalid read21 22 Changes included from Chromium:23 24 - c432cac0a0beb77c63081536fc9d53b40e642cbf small patch that fixes potential crash in xdg_mime_get_mime_type_for_file() - use of pointer after being freed. -
trunk/Source/ThirdParty/xdgmime/src/xdgmime.c
r233457 r233907 794 794 return 1; 795 795 796 if (strcmp (ubase, "application/octet-stream") == 0) 796 if (strcmp (ubase, "application/octet-stream") == 0 && 797 strncmp (umime, "inode/", 6) != 0) 797 798 return 1; 798 799 -
trunk/Source/ThirdParty/xdgmime/src/xdgmimecache.c
r233404 r233907 122 122 123 123 /* Open the file and map it into memory */ 124 do 124 do { 125 125 fd = open (file_name, O_RDONLY|_O_BINARY, 0); 126 while (fd == -1 && errno == EINTR);126 } while (fd == -1 && errno == EINTR); 127 127 128 128 if (fd < 0) … … 789 789 790 790 if (!mime_type) 791 mime_type = _xdg_binary_or_text_fallback (data, bytes_read);791 mime_type = _xdg_binary_or_text_fallback (data, bytes_read); 792 792 793 793 free (data); … … 871 871 return 1; 872 872 873 if (strcmp (ubase, "application/octet-stream") == 0) 873 if (strcmp (ubase, "application/octet-stream") == 0 && 874 strncmp (umime, "inode/", 6) != 0) 874 875 return 1; 875 876
Note: See TracChangeset
for help on using the changeset viewer.