mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 689087 - Relax cmap format 4 checking slightly to allow Baskerville on Lion to work; r=jdaggett
This commit is contained in:
parent
7131fda8c1
commit
448a234431
@ -361,8 +361,10 @@ gfxFontUtils::ReadCMAPTableFormat4(const PRUint8 *aBuf, PRUint32 aLength,
|
||||
const PRUint16 idRangeOffset = ReadShortAt16(idRangeOffsets, i);
|
||||
|
||||
// sanity-check range
|
||||
NS_ENSURE_TRUE((startCount > prevEndCount || i == 0 || startCount == 0xFFFF) &&
|
||||
startCount <= endCount,
|
||||
// This permits ranges to overlap by 1 character, which is strictly
|
||||
// incorrect but occurs in Baskerville on OS X 10.7 (see bug 689087),
|
||||
// and appears to be harmless in practice
|
||||
NS_ENSURE_TRUE(startCount >= prevEndCount && startCount <= endCount,
|
||||
NS_ERROR_GFX_CMAP_MALFORMED);
|
||||
prevEndCount = endCount;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user