[kerx] Protect against stack underflow
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11367
This commit is contained in:
parent
3e284e02c2
commit
a549aa14a0
|
@ -260,7 +260,7 @@ struct KerxSubTableFormat1
|
|||
depth = 0; /* Probably not what CoreText does, but better? */
|
||||
}
|
||||
|
||||
if (Format1EntryT::performAction (entry))
|
||||
if (depth && Format1EntryT::performAction (entry))
|
||||
{
|
||||
unsigned int tuple_count = MAX (1u, table->header.tuple_count ());
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue