4 ms·
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 an
by WalterBright 2y ago
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.