Diffusion GnuPG 00b7767bc6fe

common: Let format_text return an error.

Authored by werner on May 15 2017, 9:58 AM.

Description

common: Let format_text return an error.

* common/stringhelp.c (format_text): Return NULL on error.
* common/t-stringhelp.c (test_format_text): Adjust for change.
* g10/gpgcompose.c (show_help): Abort on out of core.
* g10/tofu.c (ask_about_binding): Abort on format_text error.
(show_statistics): Ditto.
(show_warning): Ditto.

For better re-usability function in common/ shot better not use
xmalloc functions.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Committed
wernerMay 15 2017, 9:58 AM
Parents
rGbc01d62dc5d5: tests: Also run all OpenPGP tests using keyrings.
Branches
Unknown
Tags
Unknown