mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
segfault fix
Originally committed as revision 5178 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b0e6636b2d
commit
e70e7a4b17
@ -808,6 +808,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if((unsigned)(buf_size-table_size) >= INT_MAX/8)
|
||||||
|
return -1;
|
||||||
|
|
||||||
init_get_bits(&s->gb, s->bitstream_buffer+table_size, (buf_size-table_size)*8);
|
init_get_bits(&s->gb, s->bitstream_buffer+table_size, (buf_size-table_size)*8);
|
||||||
|
|
||||||
fake_ystride= s->interlaced ? p->linesize[0]*2 : p->linesize[0];
|
fake_ystride= s->interlaced ? p->linesize[0]*2 : p->linesize[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user