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?repna ... rev=0&sc=1
Since I have no svn access from where I am (holiday), if there is a motivated soul ...
evilo.
bin2o Fix
that link was wrong, here is the fix he's talking about:
Code: Select all
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);