Index: third_party/harfbuzz-ng/src/hb-ot-name-table.hh |
diff --git a/third_party/harfbuzz-ng/src/hb-ot-name-table.hh b/third_party/harfbuzz-ng/src/hb-ot-name-table.hh |
index 31d9fac7e293c12b56c559047dbc5a00d7af17f9..21450c613828b668aaa17e4d9269168988e57ce0 100644 |
--- a/third_party/harfbuzz-ng/src/hb-ot-name-table.hh |
+++ b/third_party/harfbuzz-ng/src/hb-ot-name-table.hh |
@@ -56,7 +56,8 @@ struct NameRecord |
return 0; |
} |
- inline bool sanitize (hb_sanitize_context_t *c, void *base) { |
+ inline bool sanitize (hb_sanitize_context_t *c, const void *base) const |
+ { |
TRACE_SANITIZE (this); |
/* We can check from base all the way up to the end of string... */ |
return TRACE_RETURN (c->check_struct (this) && c->check_range ((char *) base, (unsigned int) length + offset)); |
@@ -101,7 +102,7 @@ struct name |
inline unsigned int get_size (void) const |
{ return min_size + count * nameRecord[0].min_size; } |
- inline bool sanitize_records (hb_sanitize_context_t *c) { |
+ inline bool sanitize_records (hb_sanitize_context_t *c) const { |
TRACE_SANITIZE (this); |
char *string_pool = (char *) this + stringOffset; |
unsigned int _count = count; |
@@ -110,7 +111,8 @@ struct name |
return TRACE_RETURN (true); |
} |
- inline bool sanitize (hb_sanitize_context_t *c) { |
+ inline bool sanitize (hb_sanitize_context_t *c) const |
+ { |
TRACE_SANITIZE (this); |
return TRACE_RETURN (c->check_struct (this) && |
likely (format == 0 || format == 1) && |