<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<div></div>
<h2 dir="auto">
<a id="user-content-description-of-problem" class="anchor" href="#description-of-problem" aria-hidden="true"></a>Description of problem:</h2>
<p dir="auto">Failed to export key if the algorithm is ECDSAP384SHA384.</p>
<h2 dir="auto">
<a id="user-content-version-of-gnutls-used" class="anchor" href="#version-of-gnutls-used" aria-hidden="true"></a>Version of gnutls used:</h2>
<p dir="auto">GnuTLS 3.6.2</p>
<p dir="auto">Previous versions (3.5.18) are not affected.</p>
<h2 dir="auto">
<a id="user-content-distributor-of-gnutls-eg-ubuntu-fedora-rhel" class="anchor" href="#distributor-of-gnutls-eg-ubuntu-fedora-rhel" aria-hidden="true"></a>Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)</h2>
<p dir="auto">Fedora</p>
<h2 dir="auto">
<a id="user-content-how-reproducible" class="anchor" href="#how-reproducible" aria-hidden="true"></a>How reproducible:</h2>
<p dir="auto">Will be provided if necessary.</p>
<h2 dir="auto">
<a id="user-content-actual-results" class="anchor" href="#actual-results" aria-hidden="true"></a>Actual results:</h2>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">==25535==ERROR: AddressSanitizer: stack-overflow on address 0x7ffc8d3bfff8 (pc 0x000000447164 bp 0x7ffc8d3c08c0 sp 0x7ffc8d3c0000 T0)</span>
<span id="LC2" class="line" lang="plaintext">    #0 0x447163 in printf_common(void*, char const*, __va_list_tag*) (/usr/local/sbin/keymgr+0x447163)</span>
<span id="LC3" class="line" lang="plaintext">    #1 0x448c55 in vsnprintf (/usr/local/sbin/keymgr+0x448c55)</span>
<span id="LC4" class="line" lang="plaintext">    #2 0x448ff9 in __interceptor___snprintf_chk (/usr/local/sbin/keymgr+0x448ff9)</span>
<span id="LC5" class="line" lang="plaintext">    #3 0x7f39179f37d9 in asn1_create_element (/lib64/libtasn1.so.6+0xc7d9)</span>
<span id="LC6" class="line" lang="plaintext">    #4 0x7f3919b7bde8 in encode_to_private_key_info /usr/src/debug/gnutls-3.6.2-3.fc28.x86_64/lib/x509/privkey_pkcs8.c:162:7</span>
<span id="LC7" class="line" lang="plaintext">    #5 0x7f3919b7cf49 in gnutls_x509_privkey_export2_pkcs8 /usr/src/debug/gnutls-3.6.2-3.fc28.x86_64/lib/x509/privkey_pkcs8.c:630:8</span>
<span id="LC8" class="line" lang="plaintext">    #6 0x7f3919b7c1a6 in _encode_privkey /usr/src/debug/gnutls-3.6.2-3.fc28.x86_64/lib/x509/privkey_pkcs8.c:85:7</span>
<span id="LC9" class="line" lang="plaintext">    #7 0x7f3919b7c1a6 in encode_to_private_key_info /usr/src/debug/gnutls-3.6.2-3.fc28.x86_64/lib/x509/privkey_pkcs8.c:205:11</span>
<span id="LC10" class="line" lang="plaintext">    #8 0x7f3919b7cf49 in gnutls_x509_privkey_export2_pkcs8 /usr/src/debug/gnutls-3.6.2-3.fc28.x86_64/lib/x509/privkey_pkcs8.c:630:8</span>
<span id="LC11" class="line" lang="plaintext">...</span></code></pre>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">

<br>
Reply to this email directly or
<a href="https://gitlab.com/gnutls/gnutls/issues/516">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/9e994d7dc8a0e5c973e5924a9d3a7a6d/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/issues/516"}}</script>
</p>
</div>
</body>
</html>