1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

gpg: New maintainer option --debug-set-iobuf-size.

* g10/gpg.c (opts): Add new option.
(opt_set_iobuf_size): New var.
(set_debug): Set the option.
* tests/openpgp/armor.scm: Use this option to revert the buffer size
to the one which used to exhibit the tested bugs.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2018-01-24 18:29:08 +01:00
parent bfc1181644
commit db7661b5a2
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
4 changed files with 23 additions and 6 deletions

View file

@ -191,7 +191,7 @@ nW1ff9rt1YcTH9LiiE4EGBECAAYFAjnKLe0AEgkQ3uyMCd5BWw4HZUdQRwABAZeBAKDsa7tc
(info "Checking armored_key_8192")
(pipe:do
(pipe:echo armored_key_8192)
(pipe:gpg '(--import)))
(pipe:gpg '(--debug-set-iobuf-size=8 --import)))
(define nopad_armored_msg "-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.11-svn5139 (GNU/Linux)
@ -758,10 +758,10 @@ wg7Md81a5RI3F2FG8747t9gX
(info "Importing alpha_seckey")
(pipe:do
(pipe:echo alpha_seckey)
(pipe:gpg '(--import)))
(pipe:gpg '(--debug-set-iobuf-size=8 --import)))
(info "Checking for bug #1179")
(tr:do
(tr:pipe-do
(pipe:echo nopad_armored_msg)
(pipe:gpg '(--decrypt))))
(pipe:gpg '(--debug-set-iobuf-size=8 --decrypt))))