[Webkit-unassigned] [Bug 48521] New: [GTK] Crash in TextEncoding.cpp when using glib unicode

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 28 07:06:57 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=48521

           Summary: [GTK] Crash in TextEncoding.cpp when using glib
                    unicode
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: cgarcia at igalia.com


In TextEncoding::encode() we need to convert the utf16 input string to utf8 to normalize it using g_utf8_normalize(). We are assuming that the conversion always work, but when it fails g_utf8_normalize() crashes due to NULL pointer. It's reproducible with some of the fast/url tests:


Testing 20 test cases.
fast/url .
fast/url/anchor.html -> crashed
...
fast/url/host.html -> failed
.......
fast/url/query.html -> crashed
.......
fast/url/standard-url.html -> crashed
..
0.96s total testing time

16 test cases (80%) succeeded
1 test case (5%) had incorrect layout
3 test cases (15%) crashed
Starting webkit launcher.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list