Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType
Commits:
-
4e6906cc
by Alexei Podtelezhnikov at 2022-11-18T14:03:19+00:00
1 changed file:
Changes:
... | ... | @@ -111,6 +111,7 @@ THE SOFTWARE. |
111 | 111 | FT_UInt32 w = enc->lastCol - enc->firstCol + 1;
|
112 | 112 | |
113 | 113 | |
114 | + /* wrapped around "negative" values are also rejected */
|
|
114 | 115 | if ( i >= h || j >= w )
|
115 | 116 | return 0;
|
116 | 117 | |
... | ... | @@ -131,6 +132,7 @@ THE SOFTWARE. |
131 | 132 | FT_UInt result = 0;
|
132 | 133 | |
133 | 134 | |
135 | + /* adjust wrapped around "negative" values */
|
|
134 | 136 | if ( (FT_Int32)i < 0 )
|
135 | 137 | i = 0;
|
136 | 138 | if ( (FT_Int32)j < 0 )
|