Commit 4e6906cc5d31ff3249ea403926e8824b1f44ba43

Alexei Podtelezhnikov 2022-11-18T14:03:19

Comments added.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/pcf/pcfdrivr.c b/src/pcf/pcfdrivr.c
index 48d5513..ac83918 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 )