diff options
author | Tim Kosse <tim.kosse@filezilla-project.org> | 2016-01-04 16:40:26 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-01-04 16:41:05 +0100 |
commit | ffbc9aaea7dcf29c03784d128b83f0682357858d (patch) | |
tree | 18f418b18cec0f9dc22b503962388bfe93ecb89d /lib/x509 | |
parent | 572679da0b807caad03c461c63d83c3e7792a4b0 (diff) | |
download | gnutls-ffbc9aaea7dcf29c03784d128b83f0682357858d.tar.gz |
Fix out-of-bounds read in gnutls_x509_ext_export_key_usage
Diffstat (limited to 'lib/x509')
-rw-r--r-- | lib/x509/x509_ext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/x509_ext.c b/lib/x509/x509_ext.c index b4230b21a2..2227056722 100644 --- a/lib/x509/x509_ext.c +++ b/lib/x509/x509_ext.c @@ -1125,7 +1125,7 @@ int gnutls_x509_ext_export_key_usage(unsigned int usage, gnutls_datum_t * ext) str[0] = usage & 0xff; str[1] = usage >> 8; - result = asn1_write_value(c2, "", str, 9); + result = asn1_write_value(c2, "", str, 2); if (result != ASN1_SUCCESS) { gnutls_assert(); asn1_delete_structure(&c2); |