[asterisk-bugs] [JIRA] (ASTERISK-24914) Division by zero in file.c when playback of voicemail with video as h264

Asterisk Team (JIRA) noreply at issues.asterisk.org
Wed Jul 27 10:26:03 CDT 2016


     [ https://issues.asterisk.org/jira/browse/ASTERISK-24914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asterisk Team updated ASTERISK-24914:
-------------------------------------

    Target Release Version/s: 14.0.0

> Division by zero in file.c when playback of voicemail with video as h264
> ------------------------------------------------------------------------
>
>                 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: 11.16.0, 13.2.0
>         Environment: Asterisk SVN-branch-13-r433338M 
>            Reporter: Marcello Ceschia
>            Assignee: Marcello Ceschia
>      Target Release: 13.4.0, 14.0.0
>
>         Attachments: voicemail_with_video_full.log
>
>
> 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
> (gdb) print *s->fmt->format
> $5 = {name = 0x8266457 "h264", codec = 0x98fbd8c, attribute_data = 0x0, interface = 0x0}
> (gdb) print *s->fmt->format->codec
> $6 = {id = 34, name = 0x8266457 "h264", description = 0x826645c "H.264 video", type = AST_MEDIA_TYPE_VIDEO, sample_rate = 0, minimum_ms = 0, maximum_ms = 0, default_ms = 0, minimum_bytes = 0, samples_count = 0x0, get_length = 0x0, smooth = 0, mod = 0x0}
> {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