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 

bin2o Fix

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



Joined: 22 Apr 2004
Posts: 230

PostPosted: Sat Aug 12, 2006 7:02 pm    Post subject: bin2o Fix Reply with quote

I noticed this little correction in the psp svn repository for bin2o, and most of all noticed that the bug is also present in the ps2 sdk.

http://svn.ps2dev.org/listing.php?repname=psp&path=%2F&rev=0&sc=1

Since I have no svn access from where I am (holiday), if there is a motivated soul ...

evilo.
_________________
http://psxdev.info/evilo/
Back to top
View user's profile Send private message Visit poster's website
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Tue Aug 22, 2006 8:50 am    Post subject: Reply with quote

that link was wrong, here is the fix he's talking about:
Code:
Index: bps2sdk/tools/bin2o/src/in2o.c
===================================================================
--- ps2sdk/tools/bin2o/src/bin2o.c     (revision 1314)
+++ ps2sdk/tools/bin2o/src/bin2o.c     (working copy)
@@ -358,7 +358,7 @@
     if (fd_size < end)
        end = fd_size;
     
-    if (end < (size + start))
+    if (end < (size - start))
        size = end - start;
 
     buffer = malloc(size);
Back to top
View user's profile Send private message
Herben



Joined: 25 Jan 2004
Posts: 107

PostPosted: Wed Nov 22, 2006 4:12 pm    Post subject: Reply with quote

fixed and committed. thanks for pointing that out. :)
Back to top
View user's profile Send private message
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