newsgnulib - GNU portability library - News: Gnulib helps you avoid integer overflow vulnerabilities

 
 
Latest News
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 supports portable multithreading posted by haible, Wed 30 Dec 2020 03:10:08 PM UTC
Gnulib helps you write efficient algorithms posted by haible, Wed 23 Dec 2020 01:42:02 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.

 

Back to the top

Powered by Savane 3.13-3230.
Corresponding source code