[svn] ksba - r324 - trunk/src
svn author wk
cvs at cvs.gnupg.org
Thu Aug 19 14:17:28 CEST 2010
Author: wk
Date: 2010-08-19 14:17:27 +0200 (Thu, 19 Aug 2010)
New Revision: 324
Modified:
trunk/src/ChangeLog
trunk/src/dn.c
Log:
Fix static buffer overflow.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2010-08-04 08:31:38 UTC (rev 323)
+++ trunk/src/ChangeLog 2010-08-19 12:17:27 UTC (rev 324)
@@ -1,3 +1,7 @@
+2010-08-19 Werner Koch <wk at g10code.com>
+
+ * dn.c (append_ucs2_value): Enlarge TMP buffer. Fixes bug#1269.
+
2010-08-02 Werner Koch <wk at g10code.com>
* reader.c (ksba_reader_set_release_notify): New.
Modified: trunk/src/dn.c
===================================================================
--- trunk/src/dn.c 2010-08-04 08:31:38 UTC (rev 323)
+++ trunk/src/dn.c 2010-08-19 12:17:27 UTC (rev 324)
@@ -464,7 +464,7 @@
append_ucs2_value (const unsigned char *value, size_t length,
struct stringbuf *sb)
{
- unsigned char tmp[2];
+ unsigned char tmp[3];
const unsigned char *s;
size_t n;
unsigned int c;
More information about the Gnupg-commits
mailing list