Home GnuPG
Diffusion GnuPG 521455df0702

agent: Avoid uninitialized access in GENKEY command on parameter error.

Description

agent: Avoid uninitialized access in GENKEY command on parameter error.

* agent/command.c (cmd_genkey): Moved init_membuf to the top.

This is part of

(cherry picked from commit 379fc5569d604c4a7b5f12b2bbfc4106893c2a9e)

  • Signed-off-by: Jakub Jelen <jjelen@redhat.com>
  • GnuPG-bug-id: T7129

Details

Provenance
JakujeAuthored on May 28 2024, 4:50 PM
wernerCommitted on May 29 2024, 11:48 AM
Parents
rG5e7ea643052b: agent: Avoid double free of empty string in the PIN caching.
Branches
Unknown
Tags
Unknown
Tasks
T7129: Fix static reports by static analyser in gnugp