From ede4706c8cc0b0b5ca4fbd4e264d771d7e0ba970 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 15 Apr 2008 23:59:37 +0000 Subject: checked in Thomas' patch 1930681 to fix buffer overflows svn path=/trunk/; revision=9711 --- .../s_path_buffer_overflow_fixes-0.41.4.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/patches/s_path_buffer_overflow_fixes-0.41.4.patch (limited to 'packages/patches/s_path_buffer_overflow_fixes-0.41.4.patch') 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++) -- cgit v1.2.1