[kern] Really fix access violation in Format3

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11245
This commit is contained in:
Behdad Esfahbod 2018-11-03 15:06:45 -04:00
parent 93ef20a83b
commit f074da8c2b
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ struct KernSubTableFormat3
return_trace (true); /* Disabled. See above. */
return_trace (c->check_struct (this) &&
c->check_range (kernValueZ,
kernValueCount +
kernValueCount * sizeof (FWORD) +
glyphCount * 2 +
leftClassCount * rightClassCount));
}