[asterisk-bugs] [Asterisk 0017128]: [patch] endless cycle in ast_waitfor_nandfds() for big timeouts

Asterisk Bug Tracker noreply at bugs.digium.com
Tue May 4 18:36:54 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17128 
====================================================================== 
Reported By:                under
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17128
Category:                   Core/Channels
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     ready for testing
Target Version:             1.4.33
Asterisk Version:           1.6.0.26 
JIRA:                       SWP-1251 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-04-02 03:10 CDT
Last Modified:              2010-05-04 18:36 CDT
====================================================================== 
Summary:                    [patch] endless cycle in ast_waitfor_nandfds() for
big timeouts
Description: 
Subj. happens when we call Dial() with really large answer timeout.
After this we see that asterisk eats all CPU.
Problem seems to happen due to multiplication (by 1000) overflow. 
====================================================================== 

---------------------------------------------------------------------- 
 (0121387) svnbot (reporter) - 2010-05-04 18:36
 https://issues.asterisk.org/view.php?id=17128#c121387 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 261093

U   branches/1.4/main/channel.c

------------------------------------------------------------------------
r261093 | tilghman | 2010-05-04 18:36:53 -0500 (Tue, 04 May 2010) | 7
lines

Protect against overflow, when calculating how long to wait for a frame.

(closes issue https://issues.asterisk.org/view.php?id=17128)
 Reported by: under
 Patches: 
       d.diff uploaded by under (license 914)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=261093 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-05-04 18:36 svnbot         Checkin                                      
2010-05-04 18:36 svnbot         Note Added: 0121387                          
======================================================================




More information about the asterisk-bugs mailing list