[FFmpeg-cvslog] avcodec/ff_h264_decode_sei: fix integer overflow with size.
Michael Niedermayer
git at videolan.org
Sun Jul 21 18:03:38 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jul 21 16:34:14 2013 +0200| [80c873a87ed07c6dd772dcf6befb4cf0fd98ef7b] | committer: Michael Niedermayer
avcodec/ff_h264_decode_sei: fix integer overflow with size.
This issue is hypothetical and no testcase is available.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=80c873a87ed07c6dd772dcf6befb4cf0fd98ef7b
---
libavcodec/h264_sei.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/h264_sei.c b/libavcodec/h264_sei.c
index 2ac9588..3003080 100644
--- a/libavcodec/h264_sei.c
+++ b/libavcodec/h264_sei.c
@@ -244,7 +244,8 @@ static int decode_frame_packing(H264Context *h, int size){
int ff_h264_decode_sei(H264Context *h){
while (get_bits_left(&h->gb) > 16) {
- int size, type;
+ int type;
+ unsigned size;
type=0;
do{
More information about the ffmpeg-cvslog
mailing list