diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-02-25 23:08:43 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-02-25 23:08:43 +0000 |
commit | 500d889323685848f30e1f27439a95ddece52ed7 (patch) | |
tree | bef10aa3355db9c9c683be6aabbbc73d4640323c /media-libs/xine-lib/files | |
parent | quoting (diff) | |
download | gentoo-2-500d889323685848f30e1f27439a95ddece52ed7.tar.gz gentoo-2-500d889323685848f30e1f27439a95ddece52ed7.tar.bz2 gentoo-2-500d889323685848f30e1f27439a95ddece52ed7.zip |
Fix FLAC playback after security fix.
(Portage version: 2.1.4.4)
Diffstat (limited to 'media-libs/xine-lib/files')
-rw-r--r-- | media-libs/xine-lib/files/xine-lib-1.1.10.1-off-by-one.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/media-libs/xine-lib/files/xine-lib-1.1.10.1-off-by-one.patch b/media-libs/xine-lib/files/xine-lib-1.1.10.1-off-by-one.patch new file mode 100644 index 000000000000..8de57a93f3bf --- /dev/null +++ b/media-libs/xine-lib/files/xine-lib-1.1.10.1-off-by-one.patch @@ -0,0 +1,20 @@ + +# HG changeset patch +# User Darren Salt <linux@youmustbejoking.demon.co.uk> +# Date 1203549555 0 +# Node ID 0a9d58e399a14cfadc622f562020ba5123254592 +# Parent 6f70d1625834502a735349a6597ad7a85fb68aa5 +Off-by-one in the FLAC security fix, breaking playback of some files. + +--- a/src/demuxers/demux_flac.c Wed Feb 20 21:45:48 2008 +0000 ++++ b/src/demuxers/demux_flac.c Wed Feb 20 23:19:15 2008 +0000 +@@ -202,7 +202,7 @@ static int open_flac_file(demux_flac_t * + + length = _X_LE_32(ptr); + ptr += 4 + length; +- if (length >= block_length - 8) ++ if (length > block_length - 8) + return 0; /* bad length or too little left in the buffer */ + + user_comment_list_length = _X_LE_32(ptr); + |