mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 235913: Random crashes while printing on Solaris, patch by Roland Mainz, r=biesi, sr=bz
This commit is contained in:
parent
57c9a7c807
commit
cdfa7d1d63
@ -1248,7 +1248,8 @@ nsFontMetricsXlibContext::Init(nsIDeviceContext *aDevice, PRBool aPrintermode)
|
||||
if (NS_SUCCEEDED(rv))
|
||||
mAllowDoubleByteSpecialChars = val;
|
||||
|
||||
PRUint32 dbmapSize = sizeof(gDoubleByteSpecialCharsCCMap);
|
||||
/* Make sure we allocate/copy enougth (see http://bugzilla.mozilla.org/show_bug.cgi?id=235913#c12)*/
|
||||
PRUint32 dbmapSize = sizeof(gDoubleByteSpecialCharsCCMapUnion);
|
||||
mDoubleByteSpecialCharsCCMap = (PRUint16*)PR_Malloc(dbmapSize);
|
||||
if (!mDoubleByteSpecialCharsCCMap)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
Loading…
Reference in New Issue
Block a user