Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3329
Modified Files: Tag: devel_0_39 m_class.c Log Message: added check for invalid atom types in class_addmethod
Index: m_class.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/m_class.c,v retrieving revision 1.3.4.7 retrieving revision 1.3.4.7.2.1 diff -C2 -d -r1.3.4.7 -r1.3.4.7.2.1 *** m_class.c 18 Jan 2005 19:36:42 -0000 1.3.4.7 --- m_class.c 5 Oct 2005 06:12:06 -0000 1.3.4.7.2.1 *************** *** 359,362 **** --- 359,366 ---- m->me_arg[nargs++] = argtype; argtype = va_arg(ap, t_atomtype); + if (argtype > A_CANT || argtype < 0) { + error("%s_%s: unknown atom type %d", c->c_name->s_name, sel->s_name, argtype); + return; + } } if (argtype != A_NULL)