Cosmetic
This commit is contained in:
parent
be74284673
commit
26bfcb64e4
|
@ -348,9 +348,8 @@ struct GDEF
|
|||
|
||||
inline bool sanitize (SANITIZE_ARG_DEF) {
|
||||
TRACE_SANITIZE ();
|
||||
if (!SANITIZE (version)) return false;
|
||||
if (unlikely (version.major != 1)) return false;
|
||||
return SANITIZE_THIS2 (glyphClassDef, attachList) &&
|
||||
return SANITIZE (version) && likely (version.major == 1) &&
|
||||
SANITIZE_THIS2 (glyphClassDef, attachList) &&
|
||||
SANITIZE_THIS2 (ligCaretList, markAttachClassDef) &&
|
||||
(version < 0x00010002 || SANITIZE_THIS (markGlyphSetsDef[0]));
|
||||
}
|
||||
|
|
|
@ -913,9 +913,8 @@ struct GSUBGPOS
|
|||
|
||||
inline bool sanitize (SANITIZE_ARG_DEF) {
|
||||
TRACE_SANITIZE ();
|
||||
if (!SANITIZE (version)) return false;
|
||||
if (unlikely (version.major != 1)) return false;
|
||||
return SANITIZE_THIS (scriptList)
|
||||
return SANITIZE (version) && likely (version.major == 1)
|
||||
&& SANITIZE_THIS (scriptList)
|
||||
&& SANITIZE_THIS (featureList)
|
||||
&& SANITIZE_THIS (lookupList);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue