Fix Savannah bug #36833.

* src/psaux/t1decode.c (t1operator_seac): `seac' is not a valid
operator if we want metrics only.
This commit is contained in:
Werner Lemberg 2012-07-18 10:39:18 +02:00
parent 01b508f247
commit 6b440425fc
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2012-07-17 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #36833.
* src/psaux/t1decode.c (t1operator_seac): `seac' is not a valid
operator if we want metrics only.
2012-07-16 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #36832.
@ -20,7 +27,7 @@
2012-07-11 Werner Lemberg <wl@gnu.org>
[smooth] Avoid memory like in case of failure.
[smooth] Avoid memory leak in case of failure.
* src/smooth/ftsmooth.c (ft_smooth_render_generic): Use flags to
indicate what to clean up after finishing the function, with and

View File

@ -4,7 +4,7 @@
/* */
/* PostScript Type 1 decoding routines (body). */
/* */
/* Copyright 2000-2011 by */
/* Copyright 2000-2012 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@ -208,6 +208,12 @@
return PSaux_Err_Syntax_Error;
}
if ( decoder->builder.metrics_only )
{
FT_ERROR(( "t1operator_seac: unexpected seac\n" ));
return PSaux_Err_Syntax_Error;
}
/* seac weirdness */
adx += decoder->builder.left_bearing.x;