[asterisk-bugs] [Asterisk 0013848]: [patch] Asterisk crashes if udptl.conf is not available

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Nov 26 12:33:00 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13848 
====================================================================== 
Reported By:                klaus3000
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   13848
Category:                   Core/Configuration
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 154926 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-11-06 10:42 CST
Last Modified:              2008-11-26 12:32 CST
====================================================================== 
Summary:                    [patch] Asterisk crashes if udptl.conf is not
available
Description: 
Hi! If udptl.conf is not available, Asterisk crashes:

Program terminated with signal 8, Arithmetic exception.
http://bugs.digium.com/view.php?id=0  0x081443d5 in ast_udptl_new_with_bindaddr
(sched=0xb7735820,
io=0xb7735910, callbackmode=0, addr={s_addr = 2770372691}) at udptl.c:811
811             x = (ast_random() % (udptlend - udptlstart)) +
udptlstart;

probably udptlend - udptlstart is zero, then we have a division by zero.
====================================================================== 

---------------------------------------------------------------------- 
 (0095553) svnbot (reporter) - 2008-11-26 12:32
 http://bugs.digium.com/view.php?id=13848#c95553 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 159475

U   trunk/main/udptl.c

------------------------------------------------------------------------
r159475 | tilghman | 2008-11-26 12:32:59 -0600 (Wed, 26 Nov 2008) | 7
lines

If the config file does not exist, then the first use crashes Asterisk.
(closes issue http://bugs.digium.com/view.php?id=13848)
 Reported by: klaus3000
 Patches: 
       udptl.c.patch uploaded by eliel (license 64)
 Tested by: blitzrage

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-11-26 12:32 svnbot         Checkin                                      
2008-11-26 12:32 svnbot         Note Added: 0095553                          
======================================================================




More information about the asterisk-bugs mailing list