summaryrefslogtreecommitdiff
path: root/user/libid3tag/CVE-2008-2109.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-18 20:11:13 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-18 20:11:13 -0500
commit52ca1eb7ed6235d8cd3ae3e342b0e2fc0a150ff1 (patch)
tree7feaf3ed50e12a73bb8acaccfa8b12358af6c14f /user/libid3tag/CVE-2008-2109.patch
parent52689c1147bf962e1b0e5efbd862cc65cd631010 (diff)
downloadpackages-52ca1eb7ed6235d8cd3ae3e342b0e2fc0a150ff1.tar.gz
packages-52ca1eb7ed6235d8cd3ae3e342b0e2fc0a150ff1.tar.bz2
packages-52ca1eb7ed6235d8cd3ae3e342b0e2fc0a150ff1.tar.xz
packages-52ca1eb7ed6235d8cd3ae3e342b0e2fc0a150ff1.zip
user/libid3tag: pull in, modernise
Diffstat (limited to 'user/libid3tag/CVE-2008-2109.patch')
-rw-r--r--user/libid3tag/CVE-2008-2109.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/user/libid3tag/CVE-2008-2109.patch b/user/libid3tag/CVE-2008-2109.patch
new file mode 100644
index 000000000..6226d14af
--- /dev/null
+++ b/user/libid3tag/CVE-2008-2109.patch
@@ -0,0 +1,11 @@
+--- a/field.c.orig 2008-05-05 09:49:15.000000000 -0400
++++ b/field.c 2008-05-05 09:49:25.000000000 -0400
+@@ -291,7 +291,7 @@
+
+ end = *ptr + length;
+
+- while (end - *ptr > 0) {
++ while (end - *ptr > 0 && **ptr != '\0') {
+ ucs4 = id3_parse_string(ptr, end - *ptr, *encoding, 0);
+ if (ucs4 == 0)
+ goto fail;