TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

dangerous syntax

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
bafman



Joined: 15 Jan 2009
Posts: 4

PostPosted: Thu Jan 15, 2009 8:29 am    Post subject: dangerous syntax Reply with quote

Hello just found easy way how to crash tintin with very untransparent manner:

Code:

#act {%0} {#var ml $ml %0; }
#act {%0} {#var ml $ml %0;}


first line will cause action to be in endless loop and tt will crash. Second is ok. Syntactical analyzer should catch this
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Thu Jan 15, 2009 8:59 am    Post subject: Reply with quote

You mean #alias {%0} {#var ml $ml %0; } ?

That will indeed loop tintin, but it wouldn't necessarily be a syntactical error since someone might actually be wanting to send a space to the mud.

The only concession tintin makes is that it skips a trailing ; So #alias {%0} {#var ml $ml %0;} wouldn't loop while it technically should.
Back to top
View user's profile Send private message Send e-mail
bafman



Joined: 15 Jan 2009
Posts: 4

PostPosted: Thu Jan 15, 2009 9:47 am    Post subject: Reply with quote

I would leave skipping trailing space, its obvious behavior, but on the trailing space i need to keep eye on
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group