You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 22:24:04 +02:00
matroskadec: Fix buffer overread in matroska_ebmlnum_uint
Based on a Chromium patch Originally committed as revision 23168 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -679,7 +679,7 @@ static int matroska_ebmlnum_uint(MatroskaDemuxContext *matroska,
|
|||||||
{
|
{
|
||||||
ByteIOContext pb;
|
ByteIOContext pb;
|
||||||
init_put_byte(&pb, data, size, 0, NULL, NULL, NULL, NULL);
|
init_put_byte(&pb, data, size, 0, NULL, NULL, NULL, NULL);
|
||||||
return ebml_read_num(matroska, &pb, 8, num);
|
return ebml_read_num(matroska, &pb, FFMIN(size, 8), num);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user