forked from minhngoc25a/freetype2
[psaux] Fix heap buffer overflow (#46221).
* src/psaux/t1decode.c (t1_decoder_parse_charstring) <operator 12>: Fix limit check.
This commit is contained in:
parent
a5ecfb4ce6
commit
8edfcbed53
|
@ -1,4 +1,11 @@
|
|||
2015-10-15 Werner Lemberg <wl@gnu.org>
|
||||
2015-10-17 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[psaux] Fix heap buffer overflow (#46221).
|
||||
|
||||
* src/psaux/t1decode.c (t1_decoder_parse_charstring) <operator 12>:
|
||||
Fix limit check.
|
||||
|
||||
2015-10-17 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* src/cid/cidload.c (cid_parse_dict): Handle invalid input (#46220).
|
||||
|
||||
|
|
|
@ -512,7 +512,7 @@
|
|||
break;
|
||||
|
||||
case 12:
|
||||
if ( ip > limit )
|
||||
if ( ip >= limit )
|
||||
{
|
||||
FT_ERROR(( "t1_decoder_parse_charstrings:"
|
||||
" invalid escape (12+EOF)\n" ));
|
||||
|
|
Loading…
Reference in New Issue