From af6af86d08ec05b3a599af0a0c98ab1d2b81eaf3 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 29 Mar 2023 08:33:43 +0800 Subject: [PATCH] Update Android port * src/sfnt.c (sfnt_validate_gs): Fix validation of projection vector. --- src/sfnt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sfnt.c b/src/sfnt.c index d2c726367cb..55739ced915 100644 --- a/src/sfnt.c +++ b/src/sfnt.c @@ -7567,7 +7567,7 @@ sfnt_move_zp1 (struct sfnt_interpreter *interpreter, uint32_t point, } /* Move N points starting from the specified POINT in the zone - addressed by INTERPRETER's ZP1 register by the given DISTANCE along + addressed by INTERPRETER's ZP2 register by the given DISTANCE along the freedom vector. No checking is done to ensure that POINT lies inside the zone, or @@ -9526,7 +9526,7 @@ sfnt_validate_gs (struct sfnt_graphics_state *gs) aligned to an axis. */ if (gs->freedom_vector.x == 040000 - && gs->projection_vector.y == 040000) + && gs->projection_vector.x == 040000) gs->move = sfnt_move_x; else if (gs->freedom_vector.y == 040000 && gs->projection_vector.y == 040000) -- 2.39.2