diff options
author | Alexei Podtelezhnikov <apodtele@gmail.com> | 2022-11-18 14:03:19 +0000 |
---|---|---|
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | 2022-11-18 14:03:19 +0000 |
commit | 4e6906cc5d31ff3249ea403926e8824b1f44ba43 (patch) | |
tree | 6fa014c23b3e5c96e362679f91dec25179b567b0 /src | |
parent | 0f43a0e7ebfbda303f0b2e8b6d5db63c362233a3 (diff) | |
download | freetype2-4e6906cc5d31ff3249ea403926e8824b1f44ba43.tar.gz |
Comments added.
Diffstat (limited to 'src')
-rw-r--r-- | src/pcf/pcfdrivr.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 ) |