Revision: 9711 http://pure-data.svn.sourceforge.net/pure-data/?rev=9711&view=rev Author: eighthave Date: 2008-04-15 16:59:37 -0700 (Tue, 15 Apr 2008)
Log Message: ----------- checked in Thomas' patch 1930681 to fix buffer overflows
Added Paths: ----------- trunk/packages/patches/s_path_buffer_overflow_fixes-0.41.4.patch
Added: trunk/packages/patches/s_path_buffer_overflow_fixes-0.41.4.patch =================================================================== --- trunk/packages/patches/s_path_buffer_overflow_fixes-0.41.4.patch (rev 0) +++ trunk/packages/patches/s_path_buffer_overflow_fixes-0.41.4.patch 2008-04-15 23:59:37 UTC (rev 9711) @@ -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++)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.