Menu

#1 2 GB Border

open
nobody
None
5
2010-06-21
2010-06-21
Anonymous
No

Hi,

you have a logic-bug in your Ziplib class line 53

if(strlen($data) > pow(2,32)-1) die("File $filename larger then 2GB, cannot continue");

2^32 = 4294967296 ~= 4 GB
i think you mean 2^31 = 2147483648 ~= 2 GB

greetings

Discussion


Log in to post a comment.