Go Back   FlashFXP Forums > ioFTPD Forum > ioFTPD > ioFTPD beta > Bug Reports

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
Old 11-16-2004, 03:32 PM   #1
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 424
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, 03:36 PM   #2
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,364
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, 03:42 PM   #3
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 424
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, 04:08 PM   #4
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,364
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, 09:32 PM   #5
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 424
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, 11:41 AM   #6
Senior Member
 
Join Date: Jan 2004
Posts: 237
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
Create a free account to browse our forums without ads



Thread Tools
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 02:31 PM.