Home GnuPG
Diffusion GnuPG f194986cd893

Fix access to the bintoasc mapping in the libksba support.

Description

Fix access to the bintoasc mapping in the libksba support.

* common/ksba-io-support.c (has_only_base64): Use memchr since calling
strchr on a non-NUL terminated string is undefined behavior.

This patch has been stripped from Colin's original patch because this
is not just about a warning but an actual bug. That bug was
introduced in 2003 by me. - wk

  • Signed-off-by: Collin Funk <collin.funk1@gmail.com>

Details

Provenance
collinfunkAuthored on Wed, Apr 30, 10:36 AM
wernerCommitted on Wed, Apr 30, 10:42 AM
Parents
rG84229829b52d: scd:p15: Accept P15 cards with a zero-length label.
Branches
Unknown
Tags
Unknown
References
STABLE-BRANCH-2-2