Title: [109175] trunk/Source/WebCore
Revision
109175
Author
[email protected]
Date
2012-02-28 17:28:06 -0800 (Tue, 28 Feb 2012)

Log Message

[Chromium] Uninitialized value in LocaleToScriptCodeForFontSelection
https://bugs.webkit.org/show_bug.cgi?id=79779

Set USCRIPT_COMMON to scriptCode as the initial value.

Reviewed by Kent Tamura.

No new tests. No behavior change.

* platform/text/LocaleToScriptMappingICU.cpp:
(WebCore::localeToScriptCodeForFontSelection):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (109174 => 109175)


--- trunk/Source/WebCore/ChangeLog	2012-02-29 01:26:03 UTC (rev 109174)
+++ trunk/Source/WebCore/ChangeLog	2012-02-29 01:28:06 UTC (rev 109175)
@@ -1,3 +1,17 @@
+2012-02-28  Kenichi Ishibashi  <[email protected]>
+
+        [Chromium] Uninitialized value in LocaleToScriptCodeForFontSelection
+        https://bugs.webkit.org/show_bug.cgi?id=79779
+
+        Set USCRIPT_COMMON to scriptCode as the initial value.
+
+        Reviewed by Kent Tamura.
+
+        No new tests. No behavior change.
+
+        * platform/text/LocaleToScriptMappingICU.cpp:
+        (WebCore::localeToScriptCodeForFontSelection):
+
 2012-02-28  Kenneth Russell  <[email protected]>
 
         [chromium] Work around IOSurface-related corruption during readback

Modified: trunk/Source/WebCore/platform/text/LocaleToScriptMappingICU.cpp (109174 => 109175)


--- trunk/Source/WebCore/platform/text/LocaleToScriptMappingICU.cpp	2012-02-29 01:26:03 UTC (rev 109174)
+++ trunk/Source/WebCore/platform/text/LocaleToScriptMappingICU.cpp	2012-02-29 01:28:06 UTC (rev 109175)
@@ -68,7 +68,7 @@
     if (U_FAILURE(status))
         return USCRIPT_COMMON;
 
-    UScriptCode scriptCode;
+    UScriptCode scriptCode = USCRIPT_COMMON;
     uscript_getCode(script, &scriptCode, 1, &status);
     // Ignore error that multiple scripts could be returned, since we only want one script.
     if (U_FAILURE(status) && status != U_BUFFER_OVERFLOW_ERROR)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to