From 72545cb83949571393f06b0f26c36adf461b967e Mon Sep 17 00:00:00 2001 From: Michiharu Ariza Date: Mon, 1 Apr 2019 16:49:15 -0700 Subject: [PATCH] fixed off by one bug in apply_deltas_to_points() --- src/hb-ot-var-gvar-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-var-gvar-table.hh b/src/hb-ot-var-gvar-table.hh index 2241ecb56..a5b1a07e6 100644 --- a/src/hb-ot-var-gvar-table.hh +++ b/src/hb-ot-var-gvar-table.hh @@ -646,7 +646,7 @@ struct gvar for (unsigned int c = 0; c < end_points.length; c++) { unsigned int end_point = end_points[c]; - for (unsigned int i = start_point; i < end_point; i++) + for (unsigned int i = start_point; i <= end_point; i++) { if (deltas[i].flag) continue; /* search in both directions within the contour for a pair of referenced points */