Merge pull request #1747 from harfbuzz/cff2-fdselect-fix
fixed faulty FDSelect::sanitize
This commit is contained in:
commit
89a7a880a1
|
@ -655,9 +655,9 @@ struct FDSelect {
|
||||||
TRACE_SANITIZE (this);
|
TRACE_SANITIZE (this);
|
||||||
|
|
||||||
return_trace (likely (c->check_struct (this) && (format == 0 || format == 3) &&
|
return_trace (likely (c->check_struct (this) && (format == 0 || format == 3) &&
|
||||||
(format == 0)?
|
((format == 0)?
|
||||||
u.format0.sanitize (c, fdcount):
|
u.format0.sanitize (c, fdcount):
|
||||||
u.format3.sanitize (c, fdcount)));
|
u.format3.sanitize (c, fdcount))));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool serialize (hb_serialize_context_t *c, const FDSelect &src, unsigned int num_glyphs)
|
bool serialize (hb_serialize_context_t *c, const FDSelect &src, unsigned int num_glyphs)
|
||||||
|
|
|
@ -56,11 +56,11 @@ struct CFF2FDSelect
|
||||||
TRACE_SANITIZE (this);
|
TRACE_SANITIZE (this);
|
||||||
|
|
||||||
return_trace (likely (c->check_struct (this) && (format == 0 || format == 3 || format == 4) &&
|
return_trace (likely (c->check_struct (this) && (format == 0 || format == 3 || format == 4) &&
|
||||||
(format == 0)?
|
((format == 0)?
|
||||||
u.format0.sanitize (c, fdcount):
|
u.format0.sanitize (c, fdcount):
|
||||||
((format == 3)?
|
((format == 3)?
|
||||||
u.format3.sanitize (c, fdcount):
|
u.format3.sanitize (c, fdcount):
|
||||||
u.format4.sanitize (c, fdcount))));
|
u.format4.sanitize (c, fdcount)))));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool serialize (hb_serialize_context_t *c, const CFF2FDSelect &src, unsigned int num_glyphs)
|
bool serialize (hb_serialize_context_t *c, const CFF2FDSelect &src, unsigned int num_glyphs)
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue