diff options
author | Nikos Mavrogiannopoulos <nmav@crystal.(none)> | 2008-09-23 21:02:39 +0300 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@crystal.(none)> | 2008-09-23 21:03:33 +0300 |
commit | 1f0cc49255c2646ae522322462b7ebc8a23cd17a (patch) | |
tree | 5c3b359cd62aac63af62ff69bb38a5c377f62ae3 | |
parent | 56dbdd2d6161ce2b601a0afa41d22cc9cb657a0d (diff) | |
download | gnutls_2_2_x.tar.gz |
Corrected buffer overrun in crt_list_import. Reported and patch by Jonathan Manktelow.gnutls_2_2_x
-rw-r--r-- | lib/x509/x509.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/x509.c b/lib/x509/x509.c index 93e81bbc2f..c77113b3ee 100644 --- a/lib/x509/x509.c +++ b/lib/x509/x509.c @@ -2813,7 +2813,7 @@ gnutls_x509_crt_list_import (gnutls_x509_crt_t * certs, } tmp.data = (void *) ptr; - tmp.size = size; + tmp.size = data->size - (ptr - (char *) data->data); ret = gnutls_x509_crt_import (certs[count], &tmp, GNUTLS_X509_FMT_PEM); |