[kerx] Make sure subtables are non-zero-length
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11400
This commit is contained in:
parent
a9e0bdc35d
commit
2c8188bf59
|
@ -812,6 +812,7 @@ struct KerxSubTable
|
|||
{
|
||||
TRACE_SANITIZE (this);
|
||||
if (!u.header.sanitize (c) ||
|
||||
u.header.length <= u.header.static_size ||
|
||||
!c->check_range (this, u.header.length))
|
||||
return_trace (false);
|
||||
|
||||
|
|
|
@ -915,7 +915,7 @@ struct ChainSubtable
|
|||
{
|
||||
TRACE_SANITIZE (this);
|
||||
if (!length.sanitize (c) ||
|
||||
length < min_size ||
|
||||
length <= min_size ||
|
||||
!c->check_range (this, length))
|
||||
return_trace (false);
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue