Fix Savannah bug #43153.

* src/psaux/psconv.c (PS_Conv_ToFixed): Add protection against
overflow in `divider'.
2.6.5
Alexei Podtelezhnikov 11 years ago
parent 336735d8de
commit bc12d9e9ac
  1. 7
      ChangeLog
  2. 3
      src/psaux/psconv.c

@ -1,3 +1,10 @@
2014-09-08 Alexei Podtelezhnikov <apodtele@gmail.com>
Fix Savannah bug #43153.
* src/psaux/psconv.c (PS_Conv_ToFixed): Add protection against
overflow in `divider'.
2014-09-03 Alexei Podtelezhnikov <apodtele@gmail.com>
[base] Tighten the overflow check in `FT_DivFix'.

@ -250,7 +250,8 @@
if ( c < 0 || c >= 10 )
break;
if ( decimal < 0xCCCCCCCL )
/* only add digit if we don't overflow */
if ( divider < 0xCCCCCCCL && decimal < 0xCCCCCCCL )
{
decimal = decimal * 10 + c;

Loading…
Cancel
Save