Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv642
Modified Files: Tag: branch-v0-40-extended s_main.c Log Message: checked in Russell Bryant's security fix for command line args
Index: s_main.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_main.c,v retrieving revision 1.28.6.1 retrieving revision 1.28.6.2 diff -C2 -d -r1.28.6.1 -r1.28.6.2 *** s_main.c 4 Nov 2007 18:00:20 -0000 1.28.6.1 --- s_main.c 27 Nov 2007 00:03:09 -0000 1.28.6.2 *************** *** 808,812 **** { sys_externalschedlib = 1; ! strcpy(sys_externalschedlibname, argv[1]); argv += 2; argc -= 2; --- 808,812 ---- { sys_externalschedlib = 1; ! strncpy(sys_externalschedlibname, argv[1], sizeof(sys_externalschedlibname) - 1); argv += 2; argc -= 2; *************** *** 815,819 **** { sys_extraflags = 1; ! strcpy(sys_extraflagsstring, argv[1]); argv += 2; argc -= 2; --- 815,819 ---- { sys_extraflags = 1; ! strncpy(sys_extraflagsstring, argv[1], sizeof(sys_extraflagsstring) - 1); argv += 2; argc -= 2;