mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2025-12-20 04:10:01 +01:00
* src/sfnt/ttbdf.c (tt_face_load_bdf_props): Fix size test.
This prevents a potential overflow on 32bit systems. Problem reported by Zhao Zijie <zijie4@illinois.edu>.
This commit is contained in:
parent
5751c184cc
commit
f75ae3d06d
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@
|
|||
if ( version != 0x0001 ||
|
||||
strings < 8 ||
|
||||
( strings - 8 ) / 4 < num_strikes ||
|
||||
strings + 1 > length )
|
||||
strings >= length )
|
||||
goto BadTable;
|
||||
|
||||
bdf->num_strikes = num_strikes;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue