[FFmpeg-trac] #8500(avfilter:open): find_rect crash

FFmpeg trac at avcodec.org
Sun Jan 26 18:38:59 EET 2020


#8500: find_rect crash
-------------------------------------+-------------------------------------
             Reporter:  mkoch        |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  important    |                Component:  avfilter
              Version:  git-master   |               Resolution:
             Keywords:  findrect     |               Blocked By:
  crash abort                        |
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by cehoyos):

 * keywords:  find_rect => findrect crash abort
 * priority:  normal => important
 * status:  new => open
 * reproduced:  0 => 1


Old description:

> Summary of the bug:
> ffmpeg crashes when using find_rect
>
> How to reproduce:
>
> ffmpeg -i test1.png -vf find_rect=test2.pgm,cover_rect out.png
>
> Input files:
> http://www.astro-electronic.de/test1.png
> http://www.astro-electronic.de/test2.pgm
>

> Below is the console output:
>
> C:\Users\mKoch\Desktop>c:\ffmpeg\ffmpeg -i test1.png -vf
> find_rect=test2.pgm,cov
> er_rect out.png
> ffmpeg version git-2020-01-24-e931119 Copyright (c) 2000-2020 the FFmpeg
> develop
> ers
>   built with gcc 9.2.1 (GCC) 20200122
>   configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
> fontconfi
> g --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d
> --enable-libb
> luray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb
> --enab
> le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-
> libshine --e
> nable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame
> --enable
> -libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
> libx265 -
> -enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp
> --enab
> le-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-
> libmysofa --en
> able-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-
> ffnvcode
> c --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-
> dxva2 -
> -enable-avisynth --enable-libopenmpt --enable-amf
>   libavutil      56. 38.100 / 56. 38.100
>   libavcodec     58. 66.100 / 58. 66.100
>   libavformat    58. 35.104 / 58. 35.104
>   libavdevice    58.  9.103 / 58.  9.103
>   libavfilter     7. 71.100 /  7. 71.100
>   libswscale      5.  6.100 /  5.  6.100
>   libswresample   3.  6.100 /  3.  6.100
>   libpostproc    55.  6.100 / 55.  6.100
> Input #0, png_pipe, from 'test1.png':
>   Duration: N/A, bitrate: N/A
>     Stream #0:0: Video: png, pal8(pc), 323x300, 25 tbr, 25 tbn, 25 tbc
> Stream mapping:
>   Stream #0:0 -> #0:0 (png (native) -> png (native))
> Press [q] to stop, [?] for help
> Assertion score != 0 failed at src/libavfilter/vf_find_rect.c:172

New description:

 Summary of the bug:
 ffmpeg crashes when using find_rect

 How to reproduce:

 ffmpeg -i test1.png -vf find_rect=test2.pgm,cover_rect out.png

 Input files:
 http://www.astro-electronic.de/test1.png
 http://www.astro-electronic.de/test2.pgm


 Below is the console output:
 {{{
 C:\Users\mKoch\Desktop>c:\ffmpeg\ffmpeg -i test1.png -vf
 find_rect=test2.pgm,cover_rect out.png
 ffmpeg version git-2020-01-24-e931119 Copyright (c) 2000-2020 the FFmpeg
 developers
   built with gcc 9.2.1 (GCC) 20200122
   configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
 fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-
 libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
 --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-
 libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
 --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx
 --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc
 --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
 --enable-amf
   libavutil      56. 38.100 / 56. 38.100
   libavcodec     58. 66.100 / 58. 66.100
   libavformat    58. 35.104 / 58. 35.104
   libavdevice    58.  9.103 / 58.  9.103
   libavfilter     7. 71.100 /  7. 71.100
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
 Input #0, png_pipe, from 'test1.png':
   Duration: N/A, bitrate: N/A
     Stream #0:0: Video: png, pal8(pc), 323x300, 25 tbr, 25 tbn, 25 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (png (native) -> png (native))
 Press [q] to stop, [?] for help
 Assertion score != 0 failed at src/libavfilter/vf_find_rect.c:172
 }}}

--

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


More information about the FFmpeg-trac mailing list