diff options
author | kefren <kefren@pkgsrc.org> | 2008-02-28 16:18:53 +0000 |
---|---|---|
committer | kefren <kefren@pkgsrc.org> | 2008-02-28 16:18:53 +0000 |
commit | b061adcef21b4c31700d63d1ec30a9640f3a9cac (patch) | |
tree | d1f6f3166c4ebb9e32ea8d3dc6543f59efb21541 /multimedia/vlc/patches | |
parent | 8dacf7b2853ba42a6d01d1f7d860b6a707388072 (diff) | |
download | pkgsrc-b061adcef21b4c31700d63d1ec30a9640f3a9cac.tar.gz |
Fix SA29122: MP4 Demuxer Arbitrary Memory Overwrite
Diffstat (limited to 'multimedia/vlc/patches')
-rw-r--r-- | multimedia/vlc/patches/patch-ad | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/multimedia/vlc/patches/patch-ad b/multimedia/vlc/patches/patch-ad new file mode 100644 index 00000000000..7baf9f89a27 --- /dev/null +++ b/multimedia/vlc/patches/patch-ad @@ -0,0 +1,18 @@ +$NetBSD: patch-ad,v 1.5 2008/02/28 16:18:53 kefren Exp $ +Index: modules/demux/mp4/mp4.c +=================================================================== +--- modules/demux/mp4/mp4.c (revision 24943) ++++ modules/demux/mp4/mp4.c (revision 24944) +@@ -1151,6 +1151,12 @@ + for( i_chunk = p_stsc->data.p_stsc->i_first_chunk[i_index] - 1; + i_chunk < i_last; i_chunk++ ) + { ++ if( i_chunk >= p_demux_track->i_chunk_count ) ++ { ++ msg_Warn( p_demux, "corrupted chunk table" ); ++ return VLC_EGENERIC; ++ } ++ + p_demux_track->chunk[i_chunk].i_sample_description_index = + p_stsc->data.p_stsc->i_sample_description_index[i_index]; + p_demux_track->chunk[i_chunk].i_sample_count = |