Home GnuPG
Diffusion GnuPG 33d418fd34b5

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:41 AM
Parents
rG0812ab299673: keyboxd: Searching UpperCaseAddress.
Branches
Unknown
Tags
Unknown