From 306b30375c684b76e4b120e1bee7eedd6ca67ee7 Mon Sep 17 00:00:00 2001 From: "masayuki%d-toybox.com" Date: Wed, 20 Jun 2007 08:55:08 +0000 Subject: [PATCH] Bug 380491 Fx randomly fails to display non-BMP ideographs. patch by Masatoshi Kimura (:emk) r+sr=rbs, a=dveditz git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@228376 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/gfx/src/windows/nsFontMetricsWin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mozilla/gfx/src/windows/nsFontMetricsWin.cpp b/mozilla/gfx/src/windows/nsFontMetricsWin.cpp index bc40354e448..a9072474305 100644 --- a/mozilla/gfx/src/windows/nsFontMetricsWin.cpp +++ b/mozilla/gfx/src/windows/nsFontMetricsWin.cpp @@ -1614,6 +1614,7 @@ ReadCMAPTableFormat12(PRUint8* aBuf, PRInt32 len, PRUint32 **aExtMap) aExtMap[plane] = new PRUint32[UCS2_MAP_LEN]; if (!aExtMap[plane]) return; // i.e., we will only retain the BMP and what we were able to allocate so far + memset(aExtMap[plane], 0, sizeof(PRUint32) * UCS2_MAP_LEN); } ADD_GLYPH(aExtMap[plane], c & 0xffff); }