gnulib - GNU portability library - News: Gnulib helps you avoid integer overflow vulnerabilities
Latest News
GNU gnulib: gnulib-tool has become much faster posted by haible, Fri 26 Apr 2024 10:12:40 AM UTC
GNU gnulib: calling for beta-testers posted by haible, Sun 21 Apr 2024 10:47:35 AM UTC
Gnulib helps you porting to Android posted by haible, Sat 15 Apr 2023 10:31:06 PM UTC
Gnulib helps you get away from fork() + exec() posted by haible, Sun 20 Nov 2022 04:27:43 PM UTC
Gnulib provides versatile bit-set implementations posted by akim, Wed 13 Jan 2021 12:17:37 PM UTC
Gnulib helps you avoid integer overflow vulnerabilities
Item posted by Paul Eggert <eggert> on Tue 08 Dec 2020 01:47:09 AM UTC.
Gnulib's intprops module has new macros INT_ADD_OK, INT_SUBTRACT_OK, and INT_MULTIPLY_OK that support portable overflow checking while doing integer arithmetic. On GNU platforms the macros typically use only a single machine instruction more than ordinary integer arithmetic would.
Powered by Savane 3.14-50d9.
Corresponding source code