Changeset 4bf4ce2 in mod_gnutls for src/gnutls_cache.c

Timestamp:
Jun 5, 2016, 3:42:32 PM (4 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, master, upstream
Children:
368e581
Parents:
6b4136c
git-author:
Thomas Klute <thomas2.klute@…> (06/05/16 08:50:28)
git-committer:
Thomas Klute <thomas2.klute@…> (06/05/16 15:42:32)
Message:

Use GCC builtins to catch overflows with mixed integer types

Different libraries (here: GnuTLS and APR) use different integer types
for lengths in their internal data structures. When assigning integer
types of different size to each other, overflows are possible,
although extremely unlikely in this context. The GCC arithmetic
overflow checking builtins provide an easy way to catch overflows
before they can cause trouble. Requires GCC 5 or later.

(No files)

Note: See TracChangeset for help on using the changeset viewer.