This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avformat/mpegvideodec: fix hypothetical pointer overflow in mpegvideo_probe()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Michael Niedermayer
11 years ago
parent
84d8b4fb81
commit
32c4b504b4
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
libavformat/mpegvideodec.c
+ 2
- 2
libavformat/mpegvideodec.c
View File
@@ -52,11 +52,11 @@ static int mpegvideo_probe(AVProbeData *p)
j = -1;
if (ptr[j + 8] & 2)
j+= 64;
if (
ptr +
j >= end)
if (j >= end
- ptr
)
break;
if (ptr[j + 8] & 1)
j+= 64;
if (
ptr +
j >= end)
if (j >= end
- ptr
)
break;
if (AV_RB24(ptr + j + 9) & 0xFFFFFE)
break;
Write
Preview
Loading…
Cancel
Save