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

 
 
Latest News
Gnulib helps you get away from fork() + exec() posted by haible, Sun 20 Nov 2022 04:27:43 PM UTC - 0 replies
Gnulib provides versatile bit-set implementations posted by akim, Wed 13 Jan 2021 12:17:37 PM UTC - 0 replies
Gnulib supports portable multithreading posted by haible, Wed 30 Dec 2020 03:10:08 PM UTC - 0 replies
Gnulib helps you write efficient algorithms posted by haible, Wed 23 Dec 2020 01:42:02 PM UTC - 0 replies
Gnulib can help your C++ programs posted by haible, Wed 16 Dec 2020 08:31:05 PM UTC - 0 replies
[Submit News]
[8 news in archive]

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.11