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

2018-02-09 Thread FFmpeg
#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
   libavformat58.  9.100 / 58.  9.100
   libavdevice58.  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
   libpostproc55.  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: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac


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

2018-02-09 Thread FFmpeg
#7015: UBSan: libavutil/eval.c:318:77: runtime error: division by zero
+---
 Reporter:  tsmith  | Type:  defect
   Status:  new | Priority:  normal
Component:  avutil  |  Version:  unspecified
 Keywords:  |   Blocked By:
 Blocking:  |  Reproduced by developer:  0
Analyzed by developer:  0   |
+---
 Summary of the bug:
 How to reproduce:
 {{{
 $ UBSAN_OPTIONS=print_stacktrace=1 ./ffmpeg -f flac -i test.flac -vn
 -threads 1 -f null -
 ffmpeg version N-89982-g81d6501 Copyright (c) 2000-2018 the FFmpeg
 developers
   built with clang version 4.0.0-1ubuntu1~16.04.2 (tags/RELEASE_400/rc1)
   configuration: --cc=clang --cxx=clang++ --disable-libxcb --disable-xlib
 --disable-logging --disable-ffprobe --disable-ffplay --disable-sdl2
 --disable-doc --disable-pthreads --disable-network --disable-d3d11va
 --disable-dxva2 --disable-vaapi --disable-vdpau --disable-stripping
 --disable-runtime-cpudetect --disable-postproc --disable-securetransport
 --disable-iconv --disable-swscale --disable-dxva2 --disable-vaapi
 --disable-vdpau --disable-videotoolbox --disable-everything --enable-
 encoder=pcm_s16le --disable-lzma --enable-protocol='file,pipe' --enable-
 muxer=null --enable-decoder=flac --enable-demuxer=flac --disable-pic
 --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-
 nvdec --disable-v4l2_m2m --disable-zlib --assert-level=2 --enable-
 filter=aresample
   libavutil  56.  7.100 / 56.  7.100
   libavcodec 58. 10.100 / 58. 10.100
   libavformat58.  9.100 / 58.  9.100
   libavdevice58.  1.100 / 58.  1.100
   libavfilter 7. 11.101 /  7. 11.101
   libswresample   3.  0.101 /  3.  0.101
 [flac @ 0x61900580] Warning: not compiled with thread support, using
 thread emulation
 [flac @ 0x61b00080] 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)
 [flac @ 0x61900f80] Warning: not compiled with thread support, using
 thread emulation
 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 @ 0x61001440] Value inf for parameter 'time_base' out of
 range [0 - 2.14748e+09]
 libavutil/eval.c:318:77: runtime error: division by zero
 #0 0x73cd4f in eval_expr (/home/user/code/FFmpeg/ffmpeg+0x73cd4f)
 #1 0x73cfda in av_expr_parse_and_eval
 (/home/user/code/FFmpeg/ffmpeg+0x73cfda)
 #2 0x77091d in set_string_number
 (/home/user/code/FFmpeg/ffmpeg+0x77091d)
 #3 0x76d8ad in av_opt_set (/home/user/code/FFmpeg/ffmpeg+0x76d8ad)
 #4 0x59afe3 in process_options
 /home/user/code/FFmpeg/libavfilter/avfilter.c:905:20
 #5 0x599d4f in avfilter_init_str
 /home/user/code/FFmpeg/libavfilter/avfilter.c:1054:19
 #6 0x5a3d25 in avfilter_graph_create_filter
 /home/user/code/FFmpeg/libavfilter/avfiltergraph.c:152:11
 #7 0x53d1ea in configure_input_audio_filter
 /home/user/code/FFmpeg/fftools/ffmpeg_filter.c:890:16
 #8 0x53d1ea in configure_input_filter
 /home/user/code/FFmpeg/fftools/ffmpeg_filter.c:981
 #9 0x53d1ea in configure_filtergraph
 /home/user/code/FFmpeg/fftools/ffmpeg_filter.c:1089
 #10 0x56af1d in flush_encoders
 /home/user/code/FFmpeg/fftools/ffmpeg.c:1873:23
 #11 0x56af1d in transcode /home/user/code/FFmpeg/fftools/ffmpeg.c:4655
 #12 0x55c87d in main /home/user/code/FFmpeg/fftools/ffmpeg.c:4812:5
 #13 0x7fed6e36a82f in __libc_start_main /build/glibc-
 Cl5G7W/glibc-2.23/csu/../csu/libc-start.c:291
 #14 0x41a928 in _start (/home/user/code/FFmpeg/ffmpeg+0x41a928)
 }}}
 git commit 81d6501be77b273053a66eeced94d78e2021f1d1

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac