[PD-dev] [ pure-data-Bugs-1577739 ] Malformed data at end of patch is treated as sender

SourceForge.net noreply at sourceforge.net
Mon Aug 4 19:18:43 CEST 2008


Bugs item #1577739, was opened at 2006-10-15 18:42
Message generated for change (Comment added) made by claudiusmaximus
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=1577739&group_id=55736

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: puredata
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Frank Barknecht (fbar)
Assigned to: Miller Puckette (millerpuckette)
Summary: Malformed data at end of patch is  treated as sender

Initial Comment:
When opening a patch file Pd doesn't check correctly if
all messages are well-formed. Inserting a line at end
of a patch file, that starts with a symbol and ends
with a ";" will treat the leading symbol as a
receive-target and will send the rest of the line to
that receiver. 

For example inserting: 

pd dsp 1;

at the end of a patch will switch on audio, even when
the patch is started with "pd -noloadbang". 

While this message is harmless, other messages may do
nasty things and open a security hole. 

Attached is a patch that illustrates this behaviour,
also see this pd-list message thread:

http://lists.puredata.info/pipermail/pd-list/2006-10/043161.html

----------------------------------------------------------------------

Comment By: ClaudiusMaximus (claudiusmaximus)
Date: 2008-08-04 17:18

Message:
Logged In: YES 
user_id=769033
Originator: NO

I think it is a feature too - if I recall correctly,  the "Freer Than Max:
Porting FTM to Pure-data" presentation at LAC showed that externals can
save additional data to a Pd patch, using precisely this feature to
re-access it on load.

----------------------------------------------------------------------

Comment By: Frank Barknecht (fbar)
Date: 2008-08-04 17:01

Message:
Logged In: YES 
user_id=569446
Originator: YES

But as a feature it is rather broken, because the data at the end of the
file is deleted if you save the patch from Pd. And even the feature can be
build in Pd itself with a loadbang'd semicolon-message box, as matju
pointed out here:
http://lists.puredata.info/pipermail/pd-list/2006-10/043171.html

----------------------------------------------------------------------

Comment By: IOhannes m zmlnig (zmoelnig)
Date: 2008-08-04 16:45

Message:
Logged In: YES 
user_id=564396
Originator: NO

i think this is a feature

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=1577739&group_id=55736




More information about the Pd-dev mailing list