Ensure there are no overflows #14
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We commonly uint64 to int so that Go functions related to allocation and iteration know what they mean, which could cause unexpected behavior when reading in bad data or even good data. We need to make a safe cast function that either returns a value or an error if the value can't be casted—for every cast we make that loses data. At the end of this, there should be no casts which are capable of losing data.
Also, look into tooling that checks for casts automatically.
This should be distinct from the limits defined in #2 , but these systems should both be in place for redundancy.