This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Wergat's profile picture

[1.7][SSP] Free space being above allowed limit

Started by Wergat, 20 May 2016 - 11:02 PM
Wergat #1
Posted 21 May 2016 - 01:02 AM
My CC Version is 1.7, no other mods. No files were changed to increase the limit.

I was testing an installer of my systems, with this i created a lot of files, then deleted them to test again. After a while i noticed that the free space was above the limit.

fs.getFreeSpace(".")
should return 1.000.000 instead of 1.000.004.

Not sure how to re-produce this successfully, but a way to do this is to create/write and delete a lot of files in a short time.

Here (http://imgur.com/a/q7pYz) are two screenshots, the first includes the bug and the second works as exspected. (And no, my Command Computers do not magicly have 4 bytes more to use)

This bug is nothing big (who cares about 4 bytes), but it might be exploited in some way.
Edited on 20 May 2016 - 11:02 PM
KingofGamesYami #2
Posted 21 May 2016 - 01:52 AM
Possibly related to this?
dan200 #3
Posted 21 May 2016 - 01:47 PM
This bug was fixed last year. Update your version.