mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[typed-offset] Fix sanitize()
This commit is contained in:
parent
62117801b8
commit
38546acd83
2 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@ struct EntryExitRecord
|
|||
{
|
||||
friend struct CursivePosFormat1;
|
||||
|
||||
bool sanitize (hb_sanitize_context_t *c, const void *base) const
|
||||
bool sanitize (hb_sanitize_context_t *c, const struct CursivePosFormat1 *base) const
|
||||
{
|
||||
TRACE_SANITIZE (this);
|
||||
return_trace (entryAnchor.sanitize (c, base) && exitAnchor.sanitize (c, base));
|
||||
|
|
|
@ -414,7 +414,7 @@ struct OffsetTo : Offset<OffsetType, has_null>
|
|||
const void *src_base, unsigned dst_bias = 0)
|
||||
{ return serialize_copy (c, src, src_base, dst_bias, hb_serialize_context_t::Head); }
|
||||
|
||||
bool sanitize_shallow (hb_sanitize_context_t *c, const void *base) const
|
||||
bool sanitize_shallow (hb_sanitize_context_t *c, const BaseType *base) const
|
||||
{
|
||||
TRACE_SANITIZE (this);
|
||||
if (unlikely (!c->check_struct (this))) return_trace (false);
|
||||
|
@ -427,7 +427,7 @@ struct OffsetTo : Offset<OffsetType, has_null>
|
|||
#ifndef HB_OPTIMIZE_SIZE
|
||||
HB_ALWAYS_INLINE
|
||||
#endif
|
||||
bool sanitize (hb_sanitize_context_t *c, const void *base, Ts&&... ds) const
|
||||
bool sanitize (hb_sanitize_context_t *c, const BaseType *base, Ts&&... ds) const
|
||||
{
|
||||
TRACE_SANITIZE (this);
|
||||
return_trace (sanitize_shallow (c, base) &&
|
||||
|
|
Loading…
Add table
Reference in a new issue