Home GnuPG
Diffusion GnuPG 7b1db7192e6e

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
rGaeee62593ae9: agent,scd: Make sure to set CONFIDENTIAL flag in Assuan.
Branches
Unknown
Tags
Unknown
Tasks
T6027: Revisit write_status_text_and buffer