3 ms·
> Try writing C functions add, subtract, multiply, and divide, that do anything on overflow except UB. For those curious... https://www.securecoding.cert.org/
by nly 11y ago
> Try writing C functions add, subtract, multiply, and divide, that do anything on overflow except UB.
For those curious...
https://www.securecoding.cert.org/confluence/display/c/INT32-C.+Ensure+that+operations+on+signed+integers+do+not+result+in+overflow https://www.securecoding.cert.org/confluence/display/c/INT32...