1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Werner Koch e33e74e3a4 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>
2012-12-15 11:28:00 +01:00
..
2012-01-10 11:51:19 +01:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-12-03 14:41:38 +00:00
2010-09-28 15:55:24 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2010-09-28 10:07:30 +00:00
2007-10-23 10:48:09 +00:00
2010-09-28 15:55:24 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2011-08-09 10:54:22 +02:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00
2012-08-24 16:37:44 +02:00
2007-10-23 10:48:09 +00:00
2010-09-28 15:55:24 +00:00
2009-09-03 15:27:30 +00:00
2007-10-23 10:48:09 +00:00
2007-10-23 10:48:09 +00:00