Changeset 57338 in webkit


Ignore:
Timestamp:
Apr 9, 2010 7:01:15 AM (14 years ago)
Author:
xan@webkit.org
Message:

2010-04-09 Xan Lopez <xlopez@igalia.com>

Reviewed by Gustavo Noronha.

WebGtk GLib-CRITICAL Segmentation fault
https://bugs.webkit.org/show_bug.cgi?id=34937

Do not crash if a plugin does not return anything in
NP_GetMIMEDescription. This can happen, and other ports gracefully
handle the situation.

  • plugins/gtk/PluginPackageGtk.cpp: (WebCore::PluginPackage::fetchInfo):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r57337 r57338  
     12010-04-09  Xan Lopez  <xlopez@igalia.com>
     2
     3        Reviewed by Gustavo Noronha.
     4
     5        WebGtk GLib-CRITICAL Segmentation fault
     6        https://bugs.webkit.org/show_bug.cgi?id=34937
     7
     8        Do not crash if a plugin does not return anything in
     9        NP_GetMIMEDescription. This can happen, and other ports gracefully
     10        handle the situation.
     11
     12        * plugins/gtk/PluginPackageGtk.cpp:
     13        (WebCore::PluginPackage::fetchInfo):
     14
    1152010-04-09  Pavel Feldman  <pfeldman@chromium.org>
    216
  • trunk/WebCore/plugins/gtk/PluginPackageGtk.cpp

    r56825 r57338  
    7070
    7171    const gchar* types = NP_GetMIMEDescription();
     72    if (!types)
     73        return true;
     74
    7275    gchar** mimeDescs = g_strsplit(types, ";", -1);
    7376    for (int i = 0; mimeDescs[i] && mimeDescs[i][0]; i++) {
Note: See TracChangeset for help on using the changeset viewer.