summaryrefslogtreecommitdiffstats
path: root/deps/id3lib/patches/id3lib.vbr_stack_smash.patch
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2017-09-11 23:04:42 +0200
committer Eric Hameleers <alien@slackware.com>2017-09-11 23:04:42 +0200
commitb34d35ccdc6282b4584693786980c8d6ed6708f8 (patch)
tree4a7f39fbd217700cfdf20977b7c97124c9a95b78 /deps/id3lib/patches/id3lib.vbr_stack_smash.patch
parentfce2e14230d0f3a684386aa45482e854faf8e8df (diff)
downloadktown-b34d35ccdc6282b4584693786980c8d6ed6708f8.tar.gz
ktown-b34d35ccdc6282b4584693786980c8d6ed6708f8.tar.xz
Updated deps for KDE 5_17.09
Diffstat (limited to 'deps/id3lib/patches/id3lib.vbr_stack_smash.patch')
-rw-r--r--deps/id3lib/patches/id3lib.vbr_stack_smash.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/deps/id3lib/patches/id3lib.vbr_stack_smash.patch b/deps/id3lib/patches/id3lib.vbr_stack_smash.patch
new file mode 100644
index 0000000..9bf33e9
--- /dev/null
+++ b/deps/id3lib/patches/id3lib.vbr_stack_smash.patch
@@ -0,0 +1,19 @@
+Description: Fix crashes when reading VBR MP3 file.
+Bug-Ubuntu: https://launchpad.net/bugs/444466
+Origin: upstream, http://sourceforge.net/tracker/?func=detail&aid=937707&group_id=979&atid=300979
+Forwarded: yes
+Author: Urs Fleisch
+
+Index: id3lib3.8.3-3.8.3/src/mp3_parse.cpp
+===================================================================
+--- id3lib3.8.3-3.8.3.orig/src/mp3_parse.cpp 2009-10-06 23:12:10.381250132 +0200
++++ id3lib3.8.3-3.8.3/src/mp3_parse.cpp 2009-10-06 23:14:09.545252591 +0200
+@@ -465,7 +465,7 @@
+ // from http://www.xingtech.com/developer/mp3/
+
+ const size_t VBR_HEADER_MIN_SIZE = 8; // "xing" + flags are fixed
+- const size_t VBR_HEADER_MAX_SIZE = 116; // frames, bytes, toc and scale are optional
++ const size_t VBR_HEADER_MAX_SIZE = 120; // frames, bytes, toc and scale are optional
+
+ if (mp3size >= vbr_header_offest + VBR_HEADER_MIN_SIZE)
+ {