|
|
|
|
|
by cryptonector
12 days ago
|
|
True. For example, it's trivial to underflow a size_t into (size_t)-1 and now you have a problem, they'll say. They're not entirely wrong. In fact, they're right: if you want to protect against these bugs then we need either to a) explicitly check for overflows all the time, or b) have integral types that trap / throw / raise a signal / panic when you exceed / would exceed minima/maxima. |
|