Fix a draw fuzzer uninitialized-memory issue (#5615)

Fixes https://oss-fuzz.com/testcase-detail/5714890590584832
This commit is contained in:
Behdad Esfahbod authored and GitHub committed 2025-10-17 19:49:40 -06:00
1 parent 61126e4b63
commit f159600ccb
2 files changed
+1 -1

No files matched your search

+1 -1
View File
@@ -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;