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.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.