Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1131
Modified Files: Tag: desiredata m_binbuf.c Log Message: crash protection using object_table, for .x targets
Index: m_binbuf.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/m_binbuf.c,v retrieving revision 1.4.4.1.2.8.2.3 retrieving revision 1.4.4.1.2.8.2.4 diff -C2 -d -r1.4.4.1.2.8.2.3 -r1.4.4.1.2.8.2.4 *** m_binbuf.c 8 Dec 2006 06:15:47 -0000 1.4.4.1.2.8.2.3 --- m_binbuf.c 13 Dec 2006 06:13:02 -0000 1.4.4.1.2.8.2.4 *************** *** 548,551 **** --- 548,553 ---- }
+ extern t_hash *object_table; + void binbuf_eval(t_binbuf *x, t_pd *target, int argc, t_atom *argv) { *************** *** 596,599 **** --- 598,606 ---- if (!target) { if (!sscanf(s->s_name,".x%lx",(long*)&target)) target=0; + if (target) { + if (!hash_exists(object_table,target)) { + error("%s target is not a currently valid pointer",s->s_name); + } + } } if (!target)