Werner Lemberg pushed to branch master at FreeType / FreeType
Commits:
-
0636dc8a
by Werner Lemberg at 2021-02-03T19:16:02+01:00
2 changed files:
Changes:
1 |
+2021-02-03 Werner Lemberg <wl@gnu.org>
|
|
2 |
+ |
|
3 |
+ [psaux] Fix integer overflow.
|
|
4 |
+ |
|
5 |
+ Reported as
|
|
6 |
+ |
|
7 |
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=30154
|
|
8 |
+ |
|
9 |
+ * src/psaux/psblues.c (cf2_blues_capture): Use `SUB_INT32`.
|
|
10 |
+ |
|
1 | 11 |
2021-02-02 Alexei Podtelezhnikov <apodtele@gmail.com>
|
2 | 12 |
|
3 | 13 |
* builds/unix/configure.raw [mmap support]: Explicitly handle Windows.
|
... | ... | @@ -506,7 +506,8 @@ |
506 | 506 |
/* guarantee minimum of 1 pixel overshoot */
|
507 | 507 |
dsNew = FT_MIN(
|
508 | 508 |
cf2_fixedRound( bottomHintEdge->dsCoord ),
|
509 |
- blues->zone[i].dsFlatEdge - cf2_intToFixed( 1 ) );
|
|
509 |
+ SUB_INT32 ( blues->zone[i].dsFlatEdge,
|
|
510 |
+ cf2_intToFixed( 1 ) ) );
|
|
510 | 511 |
}
|
511 | 512 |
|
512 | 513 |
else
|