From 4e6906cc5d31ff3249ea403926e8824b1f44ba43 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Fri, 18 Nov 2022 14:03:19 +0000 Subject: Comments added. --- src/pcf/pcfdrivr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pcf/pcfdrivr.c b/src/pcf/pcfdrivr.c index 48d551352..ac83918bc 100644 --- a/src/pcf/pcfdrivr.c +++ b/src/pcf/pcfdrivr.c @@ -111,6 +111,7 @@ THE SOFTWARE. FT_UInt32 w = enc->lastCol - enc->firstCol + 1; + /* wrapped around "negative" values are also rejected */ if ( i >= h || j >= w ) return 0; @@ -131,6 +132,7 @@ THE SOFTWARE. FT_UInt result = 0; + /* adjust wrapped around "negative" values */ if ( (FT_Int32)i < 0 ) i = 0; if ( (FT_Int32)j < 0 ) -- cgit v1.2.1