[HB] Add missing sanitize

This commit is contained in:
Behdad Esfahbod 2009-08-04 22:43:47 -04:00
parent b28815c1f6
commit 2870ac5e5d

View File

@ -176,6 +176,7 @@ struct OpenTypeFontFile
bool sanitize (SANITIZE_ARG_DEF) { bool sanitize (SANITIZE_ARG_DEF) {
SANITIZE_DEBUG (); SANITIZE_DEBUG ();
if (!SANITIZE_SELF ()) return false;
switch (tag) { switch (tag) {
default: return true; default: return true;
case TrueTypeTag: case CFFTag: return SANITIZE_THIS (CAST (OffsetTable, *this, 0)); case TrueTypeTag: case CFFTag: return SANITIZE_THIS (CAST (OffsetTable, *this, 0));