[FFmpeg-trac] #4547(avfilter:open): af_aphaser.c: segfault with low values of delay option

FFmpeg trac at avcodec.org
Sun May 10 23:08:20 CEST 2015


#4547: af_aphaser.c: segfault with low values of delay option
-------------------------------------+-------------------------------------
             Reporter:  gajjanag     |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  important    |                Component:  avfilter
              Version:  git-master   |               Resolution:
             Keywords:  aphaser      |               Blocked By:
  crash SIGSEGV                      |  Reproduced by developer:  1
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by cehoyos):

 * status:  new => open
 * version:  unspecified => git-master
 * reproduced:  0 => 1


Comment:

 {{{
 $ valgrind ffmpeg_g -i sample.aif -af aphaser=delay=0.01 -f null -
 ==4308== Memcheck, a memory error detector
 ==4308== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
 ==4308== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
 ==4308== Command: ffmpeg_g -i sample.aif -af aphaser=delay=0.01 -f null -
 ==4308==
 ffmpeg version N-71997-g5c8809b Copyright (c) 2000-2015 the FFmpeg
 developers
   built with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl --enable-gray
   libavutil      54. 23.101 / 54. 23.101
   libavcodec     56. 38.101 / 56. 38.101
   libavformat    56. 32.100 / 56. 32.100
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 16.101 /  5. 16.101
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  3.100 / 53.  3.100
 Guessed Channel Layout for  Input Stream #0.0 : stereo
 Input #0, aiff, from 'sample.aif':
   Duration: 00:00:05.00, start: 0.000000, bitrate: 1411 kb/s
     Stream #0:0: Audio: pcm_s16be, 44100 Hz, 2 channels, s16, 1411 kb/s
 Output #0, null, to 'pipe:':
   Metadata:
     encoder         : Lavf56.32.100
     Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
     Metadata:
       encoder         : Lavc56.38.101 pcm_s16le
 Stream mapping:
   Stream #0:0 -> #0:0 (pcm_s16be (native) -> pcm_s16le (native))
 Press [q] to stop, [?] for help
 ==4308== Invalid read of size 8
 ==4308==    at 0x5348A5: phaser_s16 (af_aphaser.c:200)
 ==4308==    by 0x534FF4: filter_frame (af_aphaser.c:252)
 ==4308==    by 0x4A124D: ff_filter_frame_framed (avfilter.c:1091)
 ==4308==    by 0x4A22D8: ff_filter_frame (avfilter.c:1172)
 ==4308==    by 0x4A6641: request_frame (buffersrc.c:500)
 ==4308==    by 0x4A68DA: av_buffersrc_add_frame_internal (buffersrc.c:181)
 ==4308==    by 0x4A6C6C: av_buffersrc_add_frame_flags (buffersrc.c:106)
 ==4308==    by 0x48A129: decode_audio (ffmpeg.c:1951)
 ==4308==    by 0x48F8DA: transcode (ffmpeg.c:2225)
 ==4308==    by 0x471C4A: main (ffmpeg.c:4068)
 ==4308==  Address 0xb79e960 is 0 bytes inside a block of size 1 alloc'd
 ==4308==    at 0x4C290FE: memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==4308==    by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==4308==    by 0xF24409: av_malloc (mem.c:95)
 ==4308==    by 0xF243EB: av_malloc (mem.c:134)
 ==4308==    by 0xF24742: av_calloc (mem.c:252)
 ==4308==    by 0x53512B: config_output (af_aphaser.c:209)
 ==4308==    by 0x4A04B0: avfilter_config_links (avfilter.c:262)
 ==4308==    by 0x4A0493: avfilter_config_links (avfilter.c:251)
 ==4308==    by 0x4A483E: avfilter_graph_config (avfiltergraph.c:275)
 ==4308==    by 0x4826A9: configure_filtergraph (ffmpeg_filter.c:973)
 ==4308==    by 0x48CB81: transcode_init (ffmpeg.c:2845)
 ==4308==    by 0x48D8E5: transcode (ffmpeg.c:3857)
 }}}

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


More information about the FFmpeg-trac mailing list