Fix Savannah bug #30053.

* src/cff/cffparse (cff_parse_real): Handle border case where
`fraction_length' has value 10.
This commit is contained in:
Werner Lemberg 2010-06-08 09:21:39 +02:00
parent 370aea802c
commit a4124bf088
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2010-06-08 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30053.
* src/cff/cffparse (cff_parse_real): Handle border case where
`fraction_length' has value 10.
2010-06-07 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30052.

View File

@ -335,6 +335,13 @@
fraction_length += integer_length;
}
/* this can only happen if exponent was non-zero */
if ( fraction_length == 10 )
{
number /= 10;
fraction_length -= 1;
}
/* Convert into 16.16 format. */
if ( fraction_length > 0 )
{