Update of /cvsroot/pure-data/externals/iem/iemmatrix/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22398
Modified Files: mtx_abs.c Log Message: corrected bug in mtx_abs: memory row*col was allocated, where row=atom_getint(argv[0]) and col=atom_getint(argv[1]), but argv elements were written to. i.e. lists larger than needed caused a crash.
Index: mtx_abs.c =================================================================== RCS file: /cvsroot/pure-data/externals/iem/iemmatrix/src/mtx_abs.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** mtx_abs.c 29 Mar 2006 12:07:52 -0000 1.5 --- mtx_abs.c 14 Aug 2006 20:58:37 -0000 1.6 *************** *** 20,27 **** static void mtx_abs_matrix(t_mtx_binmtx *x, t_symbol *s, int argc, t_atom *argv) { ! int row=atom_getfloat(argv++); ! int col=atom_getfloat(argv++); t_atom *m; ! int n = argc-2;
if (argc<2){ post("mtx_abs: crippled matrix"); return; } --- 20,27 ---- static void mtx_abs_matrix(t_mtx_binmtx *x, t_symbol *s, int argc, t_atom *argv) { ! int row=atom_getint(argv++); ! int col=atom_getint(argv++); t_atom *m; ! int n = row*col;
if (argc<2){ post("mtx_abs: crippled matrix"); return; }