mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-19 23:48:50 +00:00
8042855: [parfait] Potential null pointer dereference in IndicLayoutEngine.cpp
Reviewed-by: bae, srl
This commit is contained in:
parent
57d0476f97
commit
6a4110296a
@ -151,7 +151,7 @@ le_int32 IndicOpenTypeLayoutEngine::characterProcessing(const LEUnicode chars[],
|
||||
le_int32 outCharCount;
|
||||
if (fVersion2) {
|
||||
_LETRACE("v2process");
|
||||
outCharCount = IndicReordering::v2process(&chars[offset], count, fScriptCode, outChars, glyphStorage);
|
||||
outCharCount = IndicReordering::v2process(&chars[offset], count, fScriptCode, outChars, glyphStorage, success);
|
||||
} else {
|
||||
_LETRACE("reorder");
|
||||
outCharCount = IndicReordering::reorder(&chars[offset], count, fScriptCode, outChars, glyphStorage, &fMPreFixups, success);
|
||||
|
||||
@ -1096,9 +1096,13 @@ void IndicReordering::finalReordering(LEGlyphStorage &glyphStorage, le_int32 cou
|
||||
|
||||
|
||||
le_int32 IndicReordering::v2process(const LEUnicode *chars, le_int32 charCount, le_int32 scriptCode,
|
||||
LEUnicode *outChars, LEGlyphStorage &glyphStorage)
|
||||
LEUnicode *outChars, LEGlyphStorage &glyphStorage, LEErrorCode& success)
|
||||
{
|
||||
const IndicClassTable *classTable = IndicClassTable::getScriptClassTable(scriptCode);
|
||||
if (classTable == NULL) {
|
||||
success = LE_MEMORY_ALLOCATION_ERROR;
|
||||
return 0;
|
||||
}
|
||||
|
||||
DynamicProperties dynProps[INDIC_BLOCK_SIZE];
|
||||
IndicReordering::getDynamicProperties(dynProps,classTable);
|
||||
|
||||
@ -181,7 +181,7 @@ public:
|
||||
static void adjustMPres(MPreFixups *mpreFixups, LEGlyphStorage &glyphStorage, LEErrorCode& success);
|
||||
|
||||
static le_int32 v2process(const LEUnicode *theChars, le_int32 charCount, le_int32 scriptCode,
|
||||
LEUnicode *outChars, LEGlyphStorage &glyphStorage);
|
||||
LEUnicode *outChars, LEGlyphStorage &glyphStorage, LEErrorCode& success);
|
||||
|
||||
static const FeatureMap *getFeatureMap(le_int32 &count);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user