by zoomablemind · 4y ago · 0 comments
Shouldn't the case of wraparound be caught by testing the resulting size as following?
s = n*m; if (n && s >= n && s >= m) /* no overflow */ ...