Home GnuPG
Diffusion GnuPG 0d73a242cb53

common: Check option arguments for a valid range.
0d73a242cb53Unpublished

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.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Oct 29 2014, 5:07 PM
Parents
rGf5592fcff308: Fix stdint.h problem for Apple.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG0d73a242cb53: common: Check option arguments for a valid range. (authored by Werner Koch <wk@gnupg.org>).Oct 29 2014, 5:07 PM