Home GnuPG
Diffusion GnuPG c27534de9553

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
rG609b1ec0c6ff: Post release updates
Branches
Unknown
Tags
Unknown