[truetype] Record the end of IDEFs.

To match the logic in FDEF.  The value of the end is only used for
bound-checking in `Ins_JMPR', so it may not have been obvious that
it was not recorded.  Tested (as part of Font Validator 2.0) all the
fonts on Fedora and did not see any change.

* src/truetype/ttinterp.c (Ins_IDEF): Updated.
This commit is contained in:
Hin-Tak Leung 2016-07-22 06:59:36 +02:00 committed by Werner Lemberg
parent 7f63105c07
commit 3a528bbe5a
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,14 @@
2016-07-22 Hin-Tak Leung <htl10@users.sourceforge.net>
[truetype] Record the end of IDEFs.
To match the logic in FDEF. The value of the end is only used for
bound-checking in `Ins_JMPR', so it may not have been obvious that
it was not recorded. Tested (as part of Font Validator 2.0) all the
fonts on Fedora and did not see any change.
* src/truetype/ttinterp.c (Ins_IDEF): Updated.
2016-07-19 Werner Lemberg <wl@gnu.org>
[truetype] Sanitizer fix, second try.

View File

@ -4008,6 +4008,7 @@
exc->error = FT_THROW( Nested_DEFS );
return;
case 0x2D: /* ENDF */
def->end = exc->IP;
return;
}
}