avcodec/cabac: Check initial cabac decoder state
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 27 Nov 2015 12:37:50 +0000 (13:37 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 27 Nov 2015 13:07:03 +0000 (14:07 +0100)
commit4c718691ea32e9ab70ccaa5e90bfebcea4588c42
tree1159b2e856b9edb2de7e523029c89fc98b9af90a
parent24c504bd0a7cd20b5e48607c7fbf5c85dc1321ab
avcodec/cabac: Check initial cabac decoder state

Fixes integer overflows
Fixes: 1430e9c43fae47a24c179c7c54f94918/signal_sigsegv_421427_2340_591e9810c7b09efe501ad84638c9e9f8.264

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Found-by: xiedingbao (Ticket4727)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 8000d484b83aafa752d84fbdbfb352ffe0dc64f8)

Conflicts:

libavcodec/cabac.h
libavcodec/cabac.c
libavcodec/cabac.h
libavcodec/cabac_functions.h
libavcodec/h264_cabac.c
libavcodec/h264_slice.c