Go Back   FlashFXP Forums > > > >

Bug Reports If you discover any bugs that we are not aware of, please post it here so it may be corrected.

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-16-2004, 04:32 PM   #1
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Talking 8 Zettabyte barrier for credits

K, let's say some user have 0 b in credits

SITE CHANGE USER CREDITS +9223372000000000000
Site reports : Credits: 9007199218750000MB

Now reset it to 0 b again

SITE CHANGE USER CREDITS +9223373000000000000
Site reports : Credits: -9007198314169484MB

Not talking about all those scripts that reports credits to IRC...


PS:

9007199218750000 Megabyte
8796092987060.546875 Gigabyte
8589934557.6763153076171875 Terrabyte
8388607.9664807766675949096679688 Pettabyte
8191.9999672663834644481539726257 Exabyte
7.9999999680335776020001503638923 Zettabyte
wooolF[RM] is offline   Reply With Quote
Old 11-16-2004, 04:36 PM   #2
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

That's probably an integer overflow. The credit/stat sections in the userfile are signed 64bit integers, like all other integer data types there is a limit.
neoxed is offline   Reply With Quote
Old 11-16-2004, 04:42 PM   #3
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Default

<sarcasm> Better be fixed cause I'm near my 8 Zb in credits! </sarcasm>
wooolF[RM] is offline   Reply With Quote
Old 11-16-2004, 05:08 PM   #4
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

Well it's not really a bug...it's by design. The max size of a signed 64bit integer is from -9223372036854775808 to 9223372036854775807 (0x7FFFFFFFFFFFFFFF). Once you the exceed either the positive or negative limit, the integer overflows.

This can't really be fixed, unless darkone is up to writing some make-shift limitless large integer support (I've seen it done, I just forget what it's called :P). The disadvantage is, that it's much slower and we know how darkone feels about optimization and speed.
neoxed is offline   Reply With Quote
Old 11-16-2004, 10:32 PM   #5
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Default

Hm, yeh, I see, thnx for the explanation. And yeh, speed is everything, agreed on that. Don't see the reason to fix this "bug" either... Nobody would get 8Zb credits anyway, heh.
wooolF[RM] is offline   Reply With Quote
Old 11-17-2004, 12:41 PM   #6
mr_F_2
Senior Member
 
Join Date: Jan 2004
Posts: 203
Default

if somebody did get over a ZB of credit they should be delusered just for giving so much without taking any, based on the principle of over-generosity.
mr_F_2 is offline   Reply With Quote
Reply

Tags
change, credits, reports, site, user

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:45 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)