[name]
This commit is contained in:
parent
998b0b68ac
commit
bf91b418b0
|
@ -98,8 +98,7 @@ struct NameRecord
|
||||||
bool sanitize (hb_sanitize_context_t *c, const void *base) const
|
bool sanitize (hb_sanitize_context_t *c, const void *base) const
|
||||||
{
|
{
|
||||||
TRACE_SANITIZE (this);
|
TRACE_SANITIZE (this);
|
||||||
/* We can check from base all the way up to the end of string... */
|
return_trace (c->check_struct (this) && offset.sanitize (c, base, length));
|
||||||
return_trace (c->check_struct (this) && c->check_range ((char *) base, (unsigned int) length + offset));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HBUINT16 platformID; /* Platform ID. */
|
HBUINT16 platformID; /* Platform ID. */
|
||||||
|
@ -107,7 +106,8 @@ struct NameRecord
|
||||||
HBUINT16 languageID; /* Language ID. */
|
HBUINT16 languageID; /* Language ID. */
|
||||||
HBUINT16 nameID; /* Name ID. */
|
HBUINT16 nameID; /* Name ID. */
|
||||||
HBUINT16 length; /* String length (in bytes). */
|
HBUINT16 length; /* String length (in bytes). */
|
||||||
HBUINT16 offset; /* String offset from start of storage area (in bytes). */
|
OffsetTo<UnsizedArrayOf<HBUINT8>>
|
||||||
|
offset; /* String offset from start of storage area (in bytes). */
|
||||||
public:
|
public:
|
||||||
DEFINE_SIZE_STATIC (12);
|
DEFINE_SIZE_STATIC (12);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue