[svn] gcry - r1395 - in trunk: . mpi
svn author wk
cvs at cvs.gnupg.org
Tue May 26 11:41:53 CEST 2009
Author: wk
Date: 2009-05-26 11:41:53 +0200 (Tue, 26 May 2009)
New Revision: 1395
Modified:
trunk/AUTHORS
trunk/mpi/ChangeLog
trunk/mpi/mpicoder.c
Log:
Fix reading of a zero MPIs.
Modified: trunk/mpi/ChangeLog
===================================================================
--- trunk/mpi/ChangeLog 2009-05-10 16:27:32 UTC (rev 1394)
+++ trunk/mpi/ChangeLog 2009-05-26 09:41:53 UTC (rev 1395)
@@ -1,3 +1,8 @@
+2009-05-26 Werner Koch <wk at g10code.com>
+
+ * mpicoder.c (mpi_read_from_buffer): Allow zero-sized MPIs (i.e a
+ zero).
+
2009-02-16 Werner Koch <wk at g10code.com>
* mpiutil.c: Remove memory.h.
Modified: trunk/AUTHORS
===================================================================
--- trunk/AUTHORS 2009-05-10 16:27:32 UTC (rev 1394)
+++ trunk/AUTHORS 2009-05-26 09:41:53 UTC (rev 1395)
@@ -81,7 +81,8 @@
perky at freebsd.org
(SEED cipher)
-LIBGCRYPT Werner Dittmann ** pending **
+LIBGCRYPT Werner Dittmann 2009-05-20
+Assigns Past and Future Changes
werner.dittmann at t-online.de
(mpi/amd64, tests/mpitests.c)
Modified: trunk/mpi/mpicoder.c
===================================================================
--- trunk/mpi/mpicoder.c 2009-05-10 16:27:32 UTC (rev 1394)
+++ trunk/mpi/mpicoder.c 2009-05-26 09:41:53 UTC (rev 1395)
@@ -46,11 +46,6 @@
/* log_debug ("mpi too large (%u bits)\n", nbits); */
goto leave;
}
- else if( !nbits )
- {
-/* log_debug ("an mpi of size 0 is not allowed\n"); */
- goto leave;
- }
buffer += 2;
nread = 2;
More information about the Gnupg-commits
mailing list