Home GnuPG
Diffusion GnuPG 34c649b36013

g10: Fix garbled status messages in NOTATION_DATA

Description

g10: Fix garbled status messages in NOTATION_DATA

* g10/cpr.c (write_status_text_and_buffer): Fix off-by-one

Depending on the escaping and line wrapping the computed remaining
buffer length could be wrong. Fixed by always using a break to
terminate the escape detection loop. Might have happened for all
status lines which may wrap.

Details

Provenance
wernerAuthored on Jun 14 2022, 11:33 AM
Parents
rG4dbef2addca8: keygen: Fix reading AEAD preference
Branches
Unknown
Tags
Unknown
Tasks
T6027: Revisit write_status_text_and buffer