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:21 +0100 |
commit | c1405c6e08ef55421108bd4395588368f4122dda (patch) | |
tree | 00afaa768b8b757421ffdadaac15a3fa66d160b4 | |
parent | ffd0adb695299af3eb3576430f6e7068a82da494 (diff) | |
download | gnutls-c1405c6e08ef55421108bd4395588368f4122dda.tar.gz |
Fix out-of-bounds read in gnutls_x509_ext_export_key_usage
-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 f974b02796..ee40f46629 100644 --- a/lib/x509/x509_ext.c +++ b/lib/x509/x509_ext.c @@ -1126,7 +1126,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); |