forked from minhngoc25a/freetype2
[base] Fix numeric overflow.
Reported as https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11080 * src/base/ftoutln.c (FT_Outline_Get_Orientation): Use `MUL_LONG'.
This commit is contained in:
parent
ba62f9d8f5
commit
c13635ee4b
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2018-10-29 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[base] Fix numeric overflow.
|
||||
|
||||
Reported as
|
||||
|
||||
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11080
|
||||
|
||||
* src/base/ftoutln.c (FT_Outline_Get_Orientation): Use `MUL_LONG'.
|
||||
|
||||
2018-10-29 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[cff] Fix numeric overflow.
|
||||
|
|
|
@ -1076,7 +1076,8 @@
|
|||
v_cur.y = points[n].y >> yshift;
|
||||
|
||||
area = ADD_LONG( area,
|
||||
( v_cur.y - v_prev.y ) * ( v_cur.x + v_prev.x ) );
|
||||
MUL_LONG( v_cur.y - v_prev.y,
|
||||
v_cur.x + v_prev.x ) );
|
||||
|
||||
v_prev = v_cur;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue