Home GnuPG
Diffusion GnuPG 25e2b27b0027

common: Check option arguments for a valid range
25e2b27b0027Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

common: Check option arguments for a valid range

* common/argparse.h (ARGPARSE_INVALID_ARG): New.
* common/argparse.c: Include limits h and errno.h.
(initialize): Add error strings for new error constant.
(set_opt_arg): Add range checking.

[ This is a backport of 0d73a242cb53522669cf712b5ece7d1ed05d003a from

master to STABLE-BRANCH-2-0 ]
  • Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>

Details

Provenance
wernerAuthored on Mar 5 2015, 2:33 AM
Parents
rG2f3de06ff44d: gpg: New command --list-gcrypt-config.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG25e2b27b0027: common: Check option arguments for a valid range (authored by Werner Koch <wk@gnupg.org>).Mar 11 2015, 3:02 PM