1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00
Werner Koch 3402a84720 Fix potential heap corruption in "gpg -v --version".
* g10/gpg.c (build_list): Rewrite to cope with buffer overflow in
certain locales.
--

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>

(cherry picked from commit e33e74e3a4b2b4a0341f933410ddd5db7a12515e)

Note that this version uses utf8_charcount to get the indentation
mostly right.

Signed-off-by: Werner Koch <wk@gnupg.org>
2013-04-22 20:25:35 +02:00
..
2010-05-12 16:18:49 +00:00
2009-12-21 16:19:09 +00:00
2009-09-03 11:29:25 +00:00
2007-07-04 19:49:40 +00:00
2009-06-05 14:11:03 +00:00
2009-07-13 17:36:02 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2009-05-06 09:36:06 +00:00
2007-07-04 19:49:40 +00:00
2009-12-21 16:19:09 +00:00
2011-01-10 19:35:10 +01:00
2011-07-01 10:33:43 +02:00
2009-07-20 11:02:20 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2010-01-11 16:05:26 +00:00
2009-09-03 20:51:55 +00:00
2011-12-15 16:46:28 -05:00
2007-07-04 19:49:40 +00:00
2010-05-12 10:53:02 +00:00
2007-07-04 19:49:40 +00:00
2009-06-05 14:11:03 +00:00
2008-12-12 12:01:20 +00:00
2008-12-12 08:54:50 +00:00
2009-06-05 14:11:03 +00:00
2013-04-22 19:59:34 +02:00
2009-05-26 09:29:02 +00:00