summaryrefslogtreecommitdiffstats
path: root/libavcodec/cabac.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-11-27 13:37:50 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2015-11-27 13:52:47 +0100
commit8000d484b83aafa752d84fbdbfb352ffe0dc64f8 (patch)
treea7872c85e8a811fc9abe6997765e20b8bcf8b511 /libavcodec/cabac.h
parenta1f6b05f5228979dab0e149deca7a30d22e98af5 (diff)
downloadffmpeg-streaming-8000d484b83aafa752d84fbdbfb352ffe0dc64f8.zip
ffmpeg-streaming-8000d484b83aafa752d84fbdbfb352ffe0dc64f8.tar.gz
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>
Diffstat (limited to 'libavcodec/cabac.h')
-rw-r--r--libavcodec/cabac.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cabac.h b/libavcodec/cabac.h
index b15a70b..1bf1c62 100644
--- a/libavcodec/cabac.h
+++ b/libavcodec/cabac.h
@@ -51,6 +51,6 @@ typedef struct CABACContext{
}CABACContext;
void ff_init_cabac_encoder(CABACContext *c, uint8_t *buf, int buf_size);
-void ff_init_cabac_decoder(CABACContext *c, const uint8_t *buf, int buf_size);
+int ff_init_cabac_decoder(CABACContext *c, const uint8_t *buf, int buf_size);
#endif /* AVCODEC_CABAC_H */
OpenPOWER on IntegriCloud