Re:Checked integer arithmetic in the prospect of C23
by wahern on Monday December 19, 2022 @10:15PM
(#34061108)
Surprisingly, OpenBSD does not have a library (neither a public API nor even just routines which are copied project-to-project as is common with OpenBSD utilities and daemons) to handle arithmetic overflow. The closest might be malloc/realloc extensions, like reallocarray, that handle common scenarios where arithmetic overflow is seen.
[ Parent
| on HN ]
There are no comments on this comment yet.