[FFmpeg-trac] #10474(avfilter:new): Crash when vstack is used on two yuv420p streams with height not divisible by 2

FFmpeg trac at avcodec.org
Tue Jul 18 17:05:34 EEST 2023


#10474: Crash when vstack is used on two yuv420p streams with height not divisible
by 2
-------------------------------------+-------------------------------------
             Reporter:  André        |                    Owner:  (none)
  Martins                            |
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avfilter
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by hungkuishing):

 The crash is caused by chroma plane right shift.
 for yuv420p,
 the height of first input luma is 55, chroma height is obtained by
 AV_CEIL_RSHIFT which is 28;
 the height of second input luma is 77, chroma height is 39.

 the height of output luma is 132(55 + 77), then height of output chroma is
 66 (132 >> 1)

 66 < 67(28 + 39) so ffmpeg crashed...

 The filter need check input parameters, especially height of input...
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10474#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list