[svn] ksba - r282 - in trunk: . src
svn author wk
cvs at cvs.gnupg.org
Fri Feb 1 13:22:25 CET 2008
Author: wk
Date: 2008-02-01 13:22:24 +0100 (Fri, 01 Feb 2008)
New Revision: 282
Modified:
trunk/NEWS
trunk/src/ChangeLog
trunk/src/ber-decoder.c
trunk/src/cert.c
Log:
Fix for unknown tags in issuerAltName.
Fix segv in ber-encoder.c.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2007-12-13 16:08:46 UTC (rev 281)
+++ trunk/src/ChangeLog 2008-02-01 12:22:24 UTC (rev 282)
@@ -1,3 +1,11 @@
+2008-02-01 Werner Koch <wk at g10code.com>
+
+ * cert.c (get_name): Fix for unknown tags.
+
+2008-01-11 Werner Koch <wk at g10code.com>
+
+ * ber-decoder.c (decoder_next): Initialize NODE.
+
2007-12-13 Werner Koch <wk at g10code.com>
* keyinfo.c (algo_table_s): Replace the unused DIGEST_ALGO int by
Modified: trunk/NEWS
===================================================================
--- trunk/NEWS 2007-12-13 16:08:46 UTC (rev 281)
+++ trunk/NEWS 2008-02-01 12:22:24 UTC (rev 282)
@@ -1,11 +1,13 @@
Noteworthy changes in version 1.0.3
------------------------------------------------
- * Minor bug fixes
+ * Minor bug fixes.
* Include the used hash algorithm in sig-val structures.
-
+ * Fix for unknown tags in issuerAltName and subjectAltName.
+
+
Noteworthy changes in version 1.0.2 (2007-07-04)
------------------------------------------------
Modified: trunk/src/ber-decoder.c
===================================================================
--- trunk/src/ber-decoder.c 2007-12-13 16:08:46 UTC (rev 281)
+++ trunk/src/ber-decoder.c 2008-02-01 12:22:24 UTC (rev 282)
@@ -766,7 +766,7 @@
decoder_next (BerDecoder d)
{
struct tag_info ti;
- AsnNode node;
+ AsnNode node = NULL;
gpg_error_t err;
DECODER_STATE ds = d->ds;
int debug = d->debug;
Modified: trunk/src/cert.c
===================================================================
--- trunk/src/cert.c 2007-12-13 16:08:46 UTC (rev 281)
+++ trunk/src/cert.c 2008-02-01 12:22:24 UTC (rev 282)
@@ -648,7 +648,9 @@
seqlen -= ti.length;
if (derlen < ti.length)
return gpg_error (GPG_ERR_BAD_BER);
- if (--idx)
+ if (!(ti.tag == 1 || ti.tag == 2 || ti.tag == 6))
+ ; /* Not a supported tag: Do not change IDX. */
+ else if (--idx)
; /* not yet at the desired index */
else if (ti.tag == 1)
{ /* rfc822Name - this is an implicit IA5_STRING */
More information about the Gnupg-commits
mailing list