aboutsummaryrefslogtreecommitdiffstats
path: root/cmdutils_opencl.c
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2015-01-10 18:00:08 +0100
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-11-26 01:38:13 +0100
commitf3e33608a5d65bec0cb303641e066681b69f3131 (patch)
tree125c38d1ae6bdb18f79f4be09032107b20b5bd31 /cmdutils_opencl.c
parentd3af86c867c709dadaf4caa472b9d5c3d6b9a841 (diff)
downloadffmpeg-f3e33608a5d65bec0cb303641e066681b69f3131.tar.gz
vp9: avoid infinite loop with broken files
With a certain fuzzed file, the parser will always return 0 consumed bytes, which makes calling code call the parser infinitely. Return the full packet size on error instead. (Here it would be nice if parsers could return errors at all.) Additionally, _if_ there's some data left, return that too, which might help with somewhat broken but still somehow playable files. Fixes ticket #4242. Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 09b4ad15681be197fff8c57ce7c988a4718d6e03) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'cmdutils_opencl.c')
0 files changed, 0 insertions, 0 deletions