Insane Restock Price for destroyed Scorpion SRV

My scorpion was destroyed by some scavengers while I was waiting on the power plant to shut down. I make it back to Gupta City in Lacaille 9352 and attempt to restock it. I go to find that it would cost 4,295,967,295 credits to restock it. Has anyone else seen this absurd price?
1642788949039.png
 
Looks like an unsigned 32-bit integer that has had the value for -1 put in it.
Yup. Somebody's doing math with unsigned ints...which is bad because, if the result is negative, they just wrap around to the nearest valid number...so -1 is 4,295,967,295 and -2 is 4,295,967,294, etc. What's more, since the output is a perfectly valid number, preventing this with data validation may not be possible.

Don't do math with unsigned ints.
 
Scorpion rebui for almost 4,3B.

Must had been one of limited special versions with personal signs of CEO of Vodel, Braben and everyone from Powerplay too.
 
you should have clicked... who knows, maybe you would have been 4bn richer. Integer overflows can be good or bad.

edit: the button was grey or not? no chance to click
 
Back
Top Bottom