summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-12-22 11:45:54 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-12-22 11:45:54 +0000
commitf840ca207963b98cc22056da29c3246112421e8d (patch)
treeb753307081ec12ead2c3e264de5eced51cd3889d /media-libs/libmms/files
parentamd64 stable wrt #297888 (diff)
downloadgentoo-2-f840ca207963b98cc22056da29c3246112421e8d.tar.gz
gentoo-2-f840ca207963b98cc22056da29c3246112421e8d.tar.bz2
gentoo-2-f840ca207963b98cc22056da29c3246112421e8d.zip
Version bump wrt #297579 by Jan Vansteenkiste.
(Portage version: 2.2_rc60/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/libmms/files')
-rw-r--r--media-libs/libmms/files/libmms-0.5-checkborders.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/media-libs/libmms/files/libmms-0.5-checkborders.patch b/media-libs/libmms/files/libmms-0.5-checkborders.patch
new file mode 100644
index 000000000000..fe82fb2bbc92
--- /dev/null
+++ b/media-libs/libmms/files/libmms-0.5-checkborders.patch
@@ -0,0 +1,25 @@
+http://bugs.gentoo.org/show_bug.cgi?id=297579
+
+--- src/mms.c
++++ src/mms.c
+@@ -1021,10 +1021,15 @@
+
+ /* forces the asf demuxer to not choose this stream */
+ if (this->streams[i].bitrate_pos) {
+- this->asf_header[this->streams[i].bitrate_pos ] = 0;
+- this->asf_header[this->streams[i].bitrate_pos + 1] = 0;
+- this->asf_header[this->streams[i].bitrate_pos + 2] = 0;
+- this->asf_header[this->streams[i].bitrate_pos + 3] = 0;
++ if (this->streams[i].bitrate_pos+3 <= ASF_HEADER_LEN) {
++ this->asf_header[this->streams[i].bitrate_pos ] = 0;
++ this->asf_header[this->streams[i].bitrate_pos + 1] = 0;
++ this->asf_header[this->streams[i].bitrate_pos + 2] = 0;
++ this->asf_header[this->streams[i].bitrate_pos + 3] = 0;
++ } else {
++ lprintf("***LOG:*** -- "
++ "libmms: attempt to write beyond asf header limit");
++ }
+ }
+ }
+ }
+