[PD] resend: popen vs shell bug

Mathieu Bouchard matju at artengine.ca
Mon Jun 28 23:25:08 CEST 2010


On Mon, 28 Jun 2010, Kim Cascone wrote:

> when sent to [popen] it crashes Pd
> but sending it to [shell] worked fine

[popen] does
   char cmd[20] = "";

and that's incredibly small. Change 20 to MAXPDSTRING, for example, though 
a really "proper" fix would completely prevent the problem even for 
commands bigger than MAXPDSTRING.

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801


More information about the Pd-list mailing list