[asterisk-bugs] [JIRA] (ASTERISK-24914) Division by zero in file.c

Marcello Ceschia (JIRA) noreply at issues.asterisk.org
Thu Mar 26 08:11:34 CDT 2015


Marcello Ceschia created ASTERISK-24914:
-------------------------------------------

             Summary: Division by zero in file.c
                 Key: ASTERISK-24914
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24914
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Core/PBX
    Affects Versions: 13.2.0
         Environment: Asterisk SVN-branch-13-r433338M 
            Reporter: Marcello Ceschia


1. recording voicemail with video as h264 
2. playback voicemail

{code}
Core was generated by `/usr/sbin/asterisk -f -vvvg -c'.
Program terminated with signal SIGFPE, Arithmetic exception.
#0  0x08157a3b in ast_readvideo_callback (s=s at entry=0xb2bad704) at file.c:975
975                     ast_channel_vstreamid_set(s->owner, ast_sched_add(ast_channel_sched(s->owner), whennext / (ast_format_get_sample_rate(s->fmt->format) / 1000), ast_fsread_video, s));

print whennext
$2 = 533

(gdb) print s->fmt->format->codec->sample_rate
$4 = 0

{code}

as you can see:
whennext / (ast_format_get_sample_rate(s->fmt->format) / 1000) == (533 / (0 / 1000))



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list