[FFmpeg-devel] [PATCH] libavfilter/scale2ref: Fix out-of-bounds array access
Michael Niedermayer
michael at niedermayer.cc
Sat Jun 3 23:17:31 EEST 2017
On Sat, Jun 03, 2017 at 05:04:19AM -0400, Kevin Mark wrote:
> ff_scale_eval_dimensions blindly assumes that two inputs are always
> available as of 3385989b98be7940044e4f0a6b431a0a00abf2fa. This is
> notably not the case when the function is called for the scale
> filter. With the scale filter inputs[1] does not exist.
>
> ff_scale_eval_dimensions now has an updated scale2ref check that
> makes certain two inputs are actually available before attempting to
> access the second one.
>
> Thanks to James Almer for reporting this bug. This should fix the 820
> Valgrind tests I single-handedly managed to break.
>
> Signed-off-by: Kevin Mark <kmark937 at gmail.com>
> ---
> libavfilter/scale.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
applied
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Dictatorship: All citizens are under surveillance, all their steps and
actions recorded, for the politicians to enforce control.
Democracy: All politicians are under surveillance, all their steps and
actions recorded, for the citizens to enforce control.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170603/612a8326/attachment.sig>
More information about the ffmpeg-devel
mailing list