* 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:
Werner Lemberg 2025-12-04 07:48:05 +01:00
parent 5751c184cc
commit f75ae3d06d

View file

@ -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;