Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Vincent Wei
harfbuzz
Commits
92480316
Commit
92480316
authored
6 years ago
by
Behdad Esfahbod
Browse files
Options
Download
Email Patches
Plain Diff
[colr] Check layer record access
parent
5dadbb0f
master
arabic-table-x
bot-check
coverity_scan
decltype
inttype-constructors
iter
metrics
rand
rvalue-reference
test-str-literal-constness
typename-outside-template
use-sinhala
var-subset
2.3.1
2.3.0
2.2.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.2
2.0.1
2.0.0
1.9.0
1.8.8
1.8.7
1.8.6
1.8.5
1.8.4
1.8.3
1.8.2
1.8.1
1.8.0
1.7.7
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/hb-ot-color-colr-table.hh
+8
-1
src/hb-ot-color-colr-table.hh
with
8 additions
and
1 deletion
+8
-1
src/hb-ot-color-colr-table.hh
View file @
92480316
...
...
@@ -110,13 +110,20 @@ struct COLR
return
true
;
}
inline
void
get_layer_record
(
unsigned
int
record
,
inline
bool
get_layer_record
(
unsigned
int
record
,
hb_codepoint_t
*
glyph_id
/* OUT */
,
unsigned
int
*
palette_index
/* OUT */
)
const
{
if
(
unlikely
(
record
>=
numLayers
))
{
*
glyph_id
=
0
;
*
palette_index
=
0xFFFF
;
return
false
;
}
const
LayerRecord
&
layer
=
(
this
+
layersZ
)[
record
];
*
glyph_id
=
layer
.
glyphid
;
*
palette_index
=
layer
.
colorIdx
;
return
true
;
}
protected:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help