[PD] resend: popen vs shell bug

Pedro Lopes pedro.lopes at ist.utl.pt
Mon Jun 28 23:31:46 CEST 2010


Mystery discovered. Thanks Mathieu.
Should it be posted to the tracker?

On Mon, Jun 28, 2010 at 10:25 PM, Mathieu Bouchard <matju at artengine.ca>wrote:

> 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
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>


-- 
Pedro Lopes
contacto: jazz at radiozero.pt
website: http://web.ist.utl.pt/Pedro.Lopes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20100628/ca6d868a/attachment.htm>


More information about the Pd-list mailing list