Home GnuPG
Diffusion GnuPG 509d0f76cedd

gpg-check-pattern: Consider an empty pattern file as valid

Description

gpg-check-pattern: Consider an empty pattern file as valid

* tools/gpg-check-pattern.c (read_file): Check length before calling
fread.

The problem with an empty file is that es_fread is called to read one
element of length zero which seems to be undefined behaviour and
results in ENOENT on my test box.

Details

Provenance
wernerAuthored on Mar 13 2024, 3:32 PM
Parents
rG5999d95e04c4: wks: Make gpg-wks-client --mirror work w/o args.
Branches
Unknown
Tags
Unknown