~ubuntu-branches/ubuntu/maverick/gnutls26/maverick-updates

« back to all changes in this revision

Viewing changes to lib/opencdk/misc.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2009-08-14 19:14:29 UTC
  • mfrom: (1.1.7 upstream) (12.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090814191429-6hovzz3oaqq101rm
Tags: 2.8.3-1
* New upstream version.
  + Stops hardcoding a hard dependency on the versions of gcrypt and tasn it
    was built against. Closes: #540449
  + Fixes CVE-2009-2730, a vulnerability related to NUL bytes in X.509
    certificate name fields. Closes: #541439        GNUTLS-SA-2009-4
    http://lists.gnu.org/archive/html/help-gnutls/2009-08/msg00011.html
* Drop 15_chainverify_expiredcert.diff, included upstream.
* Urgency high, since 541439 applies to testing, too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* misc.c
2
 
 * Copyright (C) 1998-2002, 2003, 2007, 2008 Free Software Foundation, Inc.
 
2
 * Copyright (C) 1998-2002, 2003, 2007, 2008, 2009 Free Software Foundation, Inc.
3
3
 *
4
4
 * Author: Timo Schulz
5
5
 *
94
94
  if (!string)
95
95
    return NULL;
96
96
 
97
 
  sl = cdk_calloc (1, sizeof *sl + strlen (string) + 1);
 
97
  sl = cdk_calloc (1, sizeof *sl + strlen (string) + 2);
98
98
  if (!sl)
99
99
    return NULL;
 
100
  sl->d = (char*) sl + sizeof(*sl);
100
101
  strcpy (sl->d, string);
101
102
  sl->next = *list;
102
103
  *list = sl;