summaryrefslogtreecommitdiffstats
path: root/audio-libs/libid3tag/patches/libid3tag-0.15.1b-fix_overflow.patch
diff options
context:
space:
mode:
Diffstat (limited to 'audio-libs/libid3tag/patches/libid3tag-0.15.1b-fix_overflow.patch')
-rw-r--r--audio-libs/libid3tag/patches/libid3tag-0.15.1b-fix_overflow.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/audio-libs/libid3tag/patches/libid3tag-0.15.1b-fix_overflow.patch b/audio-libs/libid3tag/patches/libid3tag-0.15.1b-fix_overflow.patch
new file mode 100644
index 0000000000..26c54c5d2c
--- /dev/null
+++ b/audio-libs/libid3tag/patches/libid3tag-0.15.1b-fix_overflow.patch
@@ -0,0 +1,11 @@
+--- field.c.orig 2008-05-05 09:49:15.000000000 -0400
++++ 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;