News for hackers. Stuff that matters.
Re:I stopped everything and started writing C again by WalterBright on Thursday March 13, 2025 @12:41PM (#43354996)
Right. Another one, small but effective, is to put an overflow check on the calculation of the size to pass to malloc().

And another - always use size_t for anything that is used as an index.

There are no comments on this comment yet.