Home GnuPG
Diffusion GnuPG e33e74e3a4b2

Fix potential heap corruption in "gpg -v --version"
e33e74e3a4b2Unpublished

Unpublished Commit · Learn More

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

Description

Fix potential heap corruption in "gpg -v --version"

* g10/gpg.c (build_list): Rewrite to cope with buffer overflow in
certain locales.
* util/membuf.c (put_membuf_str): New.
(get_membuf): Make LEN optional.

This fixes an obvious bug in locales where the translated string is
longer than the original. The bug could be exhibited by using
LANG=ru_RU.utf8 gpg -v --version.

En passant we also removed the trailing white space on continued
lines.

  • Reported-by: Dmitry V. Levin" <ldv at altlinux.org>

Details

Provenance
wernerAuthored on Dec 15 2012, 11:28 AM
Parents
rGeb541e35b80e: Update README and po files for a release
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rGe33e74e3a4b2: Fix potential heap corruption in "gpg -v --version" (authored by Werner Koch <wk@gnupg.org>).Dec 15 2012, 11:28 AM