[svn] GnuPG - r4178 - trunk/g10
svn author wk
cvs at cvs.gnupg.org
Wed Jun 28 11:37:44 CEST 2006
Author: wk
Date: 2006-06-28 11:37:42 +0200 (Wed, 28 Jun 2006)
New Revision: 4178
Modified:
trunk/g10/ChangeLog
trunk/g10/app-openpgp.c
Log:
Fixed uploading of keays.
Modified: trunk/g10/ChangeLog
===================================================================
--- trunk/g10/ChangeLog 2006-06-27 14:32:34 UTC (rev 4177)
+++ trunk/g10/ChangeLog 2006-06-28 09:37:42 UTC (rev 4178)
@@ -1,3 +1,9 @@
+2006-06-28 Werner Koch <wk at g10code.com>
+
+ * app-openpgp.c (do_writekey): Fixed computation of memmove
+ length. This led to garbled keys if E was larger than one byte.
+ Thanks to Achim Pietig for hinting at the garbled E.
+
2006-06-27 Werner Koch <wk at g10code.com>
* gpg.c (reopen_std) [HAVE_W32_SYSTEM]: Do not use it.
Modified: trunk/g10/app-openpgp.c
===================================================================
--- trunk/g10/app-openpgp.c 2006-06-27 14:32:34 UTC (rev 4177)
+++ trunk/g10/app-openpgp.c 2006-06-28 09:37:42 UTC (rev 4178)
@@ -1789,7 +1789,7 @@
if (rsa_e_len < 4)
{
/* Right justify E. */
- memmove (tp+4-rsa_e_len, tp, 4-rsa_e_len);
+ memmove (tp+4-rsa_e_len, tp, rsa_e_len);
memset (tp, 0, 4-rsa_e_len);
}
tp += 4;
More information about the Gnupg-commits
mailing list