Home GnuPG

sexp: String with \0 is considered "binary".

Description

sexp: String with \0 is considered "binary".

* src/sexp.c (suitable_encoding): It's "binary" when
the buffer contains '\0'.

Before the fix, it hits a corner case of strchr returning non-NULL
with *s = '\0', resulting shorter representation with "...". See
strchr(3).

  • GnuPG-bug-id: T6747
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Oct 5 2023, 8:33 AM
Parents
rC325786acd445: blake2-avx512: merge some of the gather loads
Branches
Unknown
Tags
Unknown
Tasks
T6747: sexp string including \0