[FFmpeg-trac] #7015(avutil:new): UBSan: libavutil/eval.c:318:77: runtime error: division by zero

FFmpeg trac at avcodec.org
Sat Feb 10 03:17:52 EET 2018


#7015: UBSan: libavutil/eval.c:318:77: runtime error: division by zero
------------------------------------+----------------------------------
             Reporter:  tsmith      |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avutil
              Version:  git-master  |               Resolution:
             Keywords:  ubsan       |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+----------------------------------
Changes (by cehoyos):

 * keywords:   => ubsan
 * version:  unspecified => git-master


Comment:

 Not reproducible with gcc.
 {{{
 $ ffmpeg_g -i test.flac -threads 1 -f null -
 ffmpeg version N-89989-g10bcc41 Copyright (c) 2000-2018 the FFmpeg
 developers
   built with gcc 6.3.0 (GCC)
   configuration: --enable-gpl --toolchain=gcc-usan
   libavutil      56.  7.100 / 56.  7.100
   libavcodec     58. 10.100 / 58. 10.100
   libavformat    58.  9.100 / 58.  9.100
   libavdevice    58.  1.100 / 58.  1.100
   libavfilter     7. 11.101 /  7. 11.101
   libswscale      5.  0.101 /  5.  0.101
   libswresample   3.  0.101 /  3.  0.101
   libpostproc    55.  0.100 / 55.  0.100
 [flac @ 0x72640c0] Could not find codec parameters for stream 0 (Audio:
 flac, mono, s16 (5 bit)): unspecified sample rate
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 Input #0, flac, from 'test.flac':
   Duration: N/A, bitrate: N/A
     Stream #0:0: Audio: flac, mono, s16 (5 bit)
 Stream mapping:
   Stream #0:0 -> #0:0 (flac (native) -> pcm_s16le (native))
 Press [q] to stop, [?] for help
 Finishing stream 0:0 without any data written to it.
 [abuffer @ 0x74907c0] Value inf for parameter 'time_base' out of range [0
 - 2.14748e+09]
     Last message repeated 3 times
 [abuffer @ 0x74907c0] Error setting option time_base to value 1/0.
 [graph_0_in_0_0 @ 0x74906c0] Error applying options to the filter.
 Error configuring filter graph
 Conversion failed!
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7015#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list