mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-30 18:13:53 +01:00
Fix a draw fuzzer uninitialized-memory issue (#5615)
Fixes https://oss-fuzz.com/testcase-detail/5714890590584832
This commit is contained in:
1 parent
61126e4b63
commit
f159600ccb
2 files changed
+1
-1
No files matched your search
@@ -687,7 +687,7 @@ struct gvar_GVAR
|
||||
|
||||
bool apply_to_all = (indices.length == 0);
|
||||
unsigned num_deltas = apply_to_all ? points.length : indices.length;
|
||||
unsigned start_deltas = (phantom_only && num_deltas >= 4 ? num_deltas - 4 : 0);
|
||||
unsigned start_deltas = (apply_to_all && phantom_only && num_deltas >= 4 ? num_deltas - 4 : 0);
|
||||
if (unlikely (!x_deltas.resize_dirty (num_deltas))) return false;
|
||||
if (unlikely (!GlyphVariationData::decompile_deltas (p, x_deltas, end, false, start_deltas))) return false;
|
||||
if (unlikely (!y_deltas.resize_dirty (num_deltas))) return false;
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user