[PD] Pd-0.39-2 segmentation fault

Mathieu Bouchard matju at artengine.ca
Wed Sep 20 21:11:21 CEST 2006


On Wed, 20 Sep 2006, IOhannes m zmoelnig wrote:

> this is one of those "is it really a bug" bugreports.
> assuming that [makefilename] is just an interface to a low level
> C-string formatting, this behaviour is pretty much expected:

I don't think so because every other sprintf wrapper in any non-Pd 
language that I know, is expected to report errors instead of crashing. 
This includes Perl, Python, Ruby, Tcl, PHP, and *many* more.

> you are dealing with pointers (%s) which you are setting to a non-sense 
> value (a number) which is always a dangerous thing to do.

In C/C++, it's a dangerous thing to do; in everything else it's at the 
same time non-sense and *safe*.

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montréal QC Canada


More information about the Pd-list mailing list