forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Yabasic crash

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Fri Dec 03, 2004 12:27 pm    Post subject: Yabasic crash Reply with quote

When entering aaaaaaaaaaaa....=0 in Yabasic, but with 40,000 a's (you can use copy/paste to create such a long string very fast), then on start the interpreter crashs (not with 20,000, I haven't checked the exact limit).

I discovered this bug while trying to find another bug: In the source code of Yabasic (http://www.yabasic.de/ , see Download) there is a function "strip" in main.c, which can cause a buffer overflow (strcpy on a 300 byte buffer) with long identifiers, but looks like it doesn't occur. The other crash looks like some 32,768 limit in the parser (perhaps the Flex/Bison sources) part of Yabasic, because the program is not executed.

Perhaps Yabasic crashs, because a return pointer on stack is overwritten. Is it possible to write a Basic program, which contains machine code, which will be executed on this bug?
Back to top
View user's profile Send private message
Guest






PostPosted: Fri Dec 03, 2004 12:41 pm    Post subject: Reply with quote

Congratulations, you now understand the basics of buffer overflow attacks.

Of course, anything that suffers a buffer overflow is vulnerable to being hijacked. How far you can get with it is another matter.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 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


Powered by phpBB © 2001, 2005 phpBB Group