[asterisk-bugs] [Asterisk 0014291]: [patch] Floating point exception crash when saying number between 9999 and 100000 with zh or tw language

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jan 21 16:04:09 CST 2009


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=14291 
====================================================================== 
Reported By:                dant
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   14291
Category:                   Core/Internationalization
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-01-20 21:46 CST
Last Modified:              2009-01-21 16:04 CST
====================================================================== 
Summary:                    [patch] Floating point exception crash when saying
number between 9999 and 100000 with zh or tw language
Description: 
Issue 12319 introduced some new code to say.c to make saying numbers in
Chinese more correct... This code causes an asterisk crash when trying to
say a number between 10000 and 99999 inclusive.

The crash occurs in ast_say_number_full_tw in say.c when performing 
if (((num / 10000) % (num/100000)) == 0)
  playz++;
in the section of code that deal with numbers between 10000 and 100000000,
which, for numbers below 100000 results in a divide by zero issue due to it
being an integer operator causing an untrapped floating point exception.



====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-21 16:04 putnopvut      Status                   new => assigned     
2009-01-21 16:04 putnopvut      Assigned To               => putnopvut       
======================================================================




More information about the asterisk-bugs mailing list