[cff] Handle T2 operator only with old CFF engine (#47157).

* src/cff/cffparse.c (cff_parser_run) <opcode 31>: Enclose with
This commit is contained in:
Werner Lemberg 2016-02-15 20:53:22 +01:00
parent 8ed9eaf1cc
commit 2873010d15
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2016-02-15 Werner Lemberg <wl@gnu.org>
[cff] Handle T2 operator only with old CFF engine (#47157).
* src/cff/cffparse.c (cff_parser_run) <opcode 31>: Enclose with
#ifdef CFF_CONFIG_OPTION_OLD_ENGINE...#endif.
2016-02-15 Werner Lemberg <wl@gnu.org>
[cff] Partially handle `load' and `store' ops in old CFF engine.

View File

@ -1049,6 +1049,7 @@
else if ( v > 246 )
p += 1;
}
#ifdef CFF_CONFIG_OPTION_OLD_ENGINE
else if ( v == 31 )
{
/* a Type 2 charstring */
@ -1177,6 +1178,7 @@
stack++;
}
}
#endif /* CFF_CONFIG_OPTION_OLD_ENGINE */
else
{
/* This is not a number, hence it's an operator. Compute its code */