aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-04-15 23:59:37 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-04-15 23:59:37 +0000
commitede4706c8cc0b0b5ca4fbd4e264d771d7e0ba970 (patch)
tree7298d6670d25a664e5c9974f3277732a65c6a915 /packages
parent37020a5a41c83769876e8f21fbefade022368417 (diff)
checked in Thomas' patch 1930681 to fix buffer overflows
svn path=/trunk/; revision=9711
Diffstat (limited to 'packages')
-rw-r--r--packages/patches/s_path_buffer_overflow_fixes-0.41.4.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/patches/s_path_buffer_overflow_fixes-0.41.4.patch b/packages/patches/s_path_buffer_overflow_fixes-0.41.4.patch
new file mode 100644
index 00000000..19a438b1
--- /dev/null
+++ b/packages/patches/s_path_buffer_overflow_fixes-0.41.4.patch
@@ -0,0 +1,22 @@
+Index: s_path.c
+===================================================================
+--- s_path.c (revision 9700)
++++ s_path.c (working copy)
+@@ -380,7 +380,7 @@
+ int rcargc;
+ char* rcargv[NUMARGS];
+ char* buffer;
+- char fname[MAXPDSTRING], buf[1000], *home = getenv("HOME");
++ char fname[MAXPDSTRING], buf[1001], *home = getenv("HOME");
+ int retval = 1; /* that's what we will return at the end; for now, let's think it'll be an error */
+
+ /* initialize rc-arg-array so we can safely clean up at the end */
+@@ -424,7 +424,7 @@
+ fclose(file);
+ if (sys_verbose)
+ {
+- if (rcargv)
++ if (rcargc)
+ {
+ post("startup args from RC file:");
+ for (i = 1; i < rcargc; i++)