avcodec/h264_slice: Limit max_contexts when slice_context_count is initialized
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 24 Nov 2015 20:12:37 +0000 (21:12 +0100)
committerMike Gabriel <sunweaver@debian.org>
Sat, 30 Mar 2019 20:44:13 +0000 (20:44 +0000)
commite31c575f09d76b3ab5b56c8fe22b84e629057d9c
tree9ccdf7d76a969523f0584d285e4fa13fb21db2b0
parentc5f2d324c525d55da6b697a9e5d1c5cf7a6fcd23
avcodec/h264_slice: Limit max_contexts when slice_context_count is initialized

avcodec/h264_slice: Limit max_contexts when slice_context_count is initialized

Fixes out of array access
Fixes: 1430e9c43fae47a24c179c7c54f94918/signal_sigsegv_421427_2049_f2192b6829ab6e0eefcb035329c03c60.264
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Gbp-Pq: Name CVE-2015-8661.patch
libavcodec/h264_slice.c