Annotation of /trunk/mplayer/patches/mplayer-1.0_rc2-demux_audio_fix_20080129.patch
Parent Directory | Revision Log
Revision 462 -
(hide annotations)
(download)
Tue Feb 5 15:43:17 2008 UTC (16 years, 7 months ago) by niro
File size: 399 byte(s)
Tue Feb 5 15:43:17 2008 UTC (16 years, 7 months ago) by niro
File size: 399 byte(s)
-security fixes
1 | niro | 462 | Index: demux_audio.c |
2 | =================================================================== | ||
3 | --- demux_audio.c (revision 24724) | ||
4 | +++ demux_audio.c (working copy) | ||
5 | @@ -229,6 +229,8 @@ | ||
6 | ptr += 4; | ||
7 | |||
8 | comment = ptr; | ||
9 | + if (&comment[length] < comments || &comment[length] >= &comments[blk_len]) | ||
10 | + return; | ||
11 | c = comment[length]; | ||
12 | comment[length] = 0; | ||
13 |