summaryrefslogtreecommitdiff
path: root/audio/audtty/patches/02-fix_possible_overflow.patch
diff options
context:
space:
mode:
Diffstat (limited to 'audio/audtty/patches/02-fix_possible_overflow.patch')
-rw-r--r--audio/audtty/patches/02-fix_possible_overflow.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/audio/audtty/patches/02-fix_possible_overflow.patch b/audio/audtty/patches/02-fix_possible_overflow.patch
new file mode 100644
index 0000000000..2d71ee304f
--- /dev/null
+++ b/audio/audtty/patches/02-fix_possible_overflow.patch
@@ -0,0 +1,22 @@
+From 92bcd204331ba673073acc25c7480cddce1e2b87 Mon Sep 17 00:00:00 2001
+From: Chris Taylor <chris@code-monkeys.org>
+Date: Fri, 05 Mar 2010 06:11:41 +0000
+Subject: Fix possible overflow.
+
+Signed-off-by: Chris Taylor <chris@code-monkeys.org>
+---
+diff --git a/playlist_create.c b/playlist_create.c
+index 475a494..f8f84c5 100644
+--- a/playlist_create.c
++++ b/playlist_create.c
+@@ -67,7 +67,7 @@ void playlist_create( void )
+ buffer[--len] = '\0';
+ break;
+ default:
+- if (len == 1025) break;
++ if (len >= 1024) break;
+ if (c < 32) break;
+ buffer[len] = c;
+ buffer[++len] = '\0';
+--
+cgit v0.8.3.4-115-g1759