Revision: 10233
http://pure-data.svn.sourceforge.net/pure-data/?rev=10233&view=rev
Author: zmoelnig
Date: 2008-08-04 15:39:54 +0000 (Mon, 04 Aug 2008)
Log Message:
-----------
fixed bug where negative list-lengths would not be
handled specially, resulting in possible segfaults
Modified Paths:
--------------
trunk/externals/zexy/src/list2lists.c
Modified: trunk/externals/zexy/src/list2lists.c
===================================================================
--- trunk/externals/zexy/src/list2lists.c 2008-08-04 15:38:50 UTC (rev 10232)
+++ trunk/externals/zexy/src/list2lists.c 2008-08-04 15:39:54 UTC (rev 10233)
@@ -66,7 +66,12 @@
x->x_lcount=argc;
x->x_length=(t_int*)getbytes((x->x_lcount)*sizeof(t_int));
for(i=0; i<argc; i++) {
- x->x_length[i]=atom_getint(argv+i);
+ int index=atom_getint(argv+i);
+ if(index<0) {
+ pd_error(x, "[list2lists]: clamped negative index=%d to 0!", index);
+ index=0;
+ }
+ x->x_length[i]=index;
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
/home/pd/auto-build/pd-extended/externals/unauthorized/audience~/audience~.c: In function ‘audience_new’:
/home/pd/auto-build/pd-extended/externals/unauthorized/audience~/audience~.c:823: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[2]: *** [/home/pd/auto-build/pd-extended/externals/unauthorized/audience~/audience~.o] Error 1
make[2]: Leaving directory `/home/pd/auto-build/pd-extended/externals'
make[1]: *** [externals_install] Error 2
make[1]: Leaving directory `/home/pd/auto-build/pd-extended/packages'
make: *** [install] Error 2
ls: /home/pd/auto-build/pd-extended/packages/linux_make/./Pd*.deb: No such file or directory
upload specs linux_make . deb
Uploading
ERROR: module is write only
rsync error: syntax or usage error (code 1) at main.c(641) [sender=2.6.9]
rsync: connection unexpectedly closed (4 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(453) [receiver=2.6.9]