Home GnuPG

logging: Also protect gpgrt_inc_errorcount against counter overflow.

Description

logging: Also protect gpgrt_inc_errorcount against counter overflow.

* src/logging.c (_gpgrt_inc_errorcount): Protect against counter
overflow.
(_gpgrt_logv_internal): Use that function here so that we have only
one check for counter overflow.

We already had an overflow checking for log_error but not for the
silent increment function.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Feb 10 2020, 2:49 PM
Parents
rE0a26c72b5af6: Post release updates
Branches
Unknown
Tags
Unknown