This commit is contained in:
Werner Lemberg 2014-10-16 07:24:44 +02:00
parent 03987bfdbf
commit df3d67e0d7
1 changed files with 9 additions and 8 deletions

View File

@ -2,14 +2,15 @@
[truetype] Limit delta shift range. [truetype] Limit delta shift range.
The legal range for delta shift is zero through six. Negative values The valid range for delta shift is zero through six. Negative values
are illegal according to are invalid according to
https://developer.apple.com/fonts/TrueType-Reference-Manual/RM04/Chap4.html#delta%20shift https://developer.apple.com/fonts/TrueType-Reference-Manual/RM04/Chap4.html#delta%20shift
* src/truetype/ttobjs.h (delta_shift, delta_base): Make unsigned. * src/truetype/ttobjs.h (delta_shift, delta_base): Make unsigned.
* src/truetype/ttinterp.h (DO_SDS): Throw an error if delta_shift * src/truetype/ttinterp.h (DO_SDS): Throw an error if `delta_shift'
out of range. is out of range.
(Ins_DELTAP, Ins_DELTAC): Optimize for legal delta_shift. (Ins_DELTAP, Ins_DELTAC): Optimize for valid `delta_shift'.
2014-10-16 Werner Lemberg <wl@gnu.org> 2014-10-16 Werner Lemberg <wl@gnu.org>