<!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=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p class="details" style="font-style: italic; color: #777;">
<a href="https://gitlab.com/rockdaboot">Tim Rühsen</a> created an issue:
</p>
<div></div>
<p dir="auto">Running the commands in <a href="https://gitlab.com/gnutls/gnutls/merge_requests/1136" data-original="!1136" data-link="false" data-link-reference="false" data-project="179611" data-merge-request="45503747" data-project-path="gnutls/gnutls" data-iid="1136" data-mr-title="UB+ASAN: Fail tests if UB detected" data-reference-type="merge_request" data-container="body" data-placement="bottom" title="" class="gfm gfm-merge_request">!1136</a> for the runner <code>UB+ASAN-Werror.Fedora.x86_64.gcc</code> stop with the error/backtrace below.</p>
<p dir="auto"><em>If</em> memcpy checks for NULL, nothing would happen. But if not, we would see a segmentation fault.</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">tim@ryzen:~/src/gnutls$ cat tests/slow/test-ciphers.sh.log </span>
<span id="LC2" class="line" lang="plaintext">iov.c:119:3: runtime error: null pointer passed as argument 2, which is declared to never be null</span>
<span id="LC3" class="line" lang="plaintext">    #0 0x7f99d24b1f5b in _gnutls_iov_iter_next /home/tim/src/gnutls/lib/iov.c:119</span>
<span id="LC4" class="line" lang="plaintext">    #1 0x7f99d2469482 in gnutls_aead_cipher_encryptv /home/tim/src/gnutls/lib/crypto-api.c:1043</span>
<span id="LC5" class="line" lang="plaintext">    #2 0x7f99d249995b in test_cipher_aead_scatter /home/tim/src/gnutls/lib/crypto-selftests.c:1028</span>
<span id="LC6" class="line" lang="plaintext">    #3 0x7f99d249995b in test_cipher_aead /home/tim/src/gnutls/lib/crypto-selftests.c:1292</span>
<span id="LC7" class="line" lang="plaintext">    #4 0x7f99d24a04d8 in gnutls_cipher_self_test /home/tim/src/gnutls/lib/crypto-selftests.c:1889</span>
<span id="LC8" class="line" lang="plaintext">    #5 0x555e1ea0e310 in main /home/tim/src/gnutls/tests/slow/cipher-test.c:45</span>
<span id="LC9" class="line" lang="plaintext">    #6 0x7f99d15aabba in __libc_start_main ../csu/libc-start.c:308</span>
<span id="LC10" class="line" lang="plaintext">    #7 0x555e1ea0e199 in _start (/home/tim/src/gnutls/tests/slow/cipher-test+0x1199)</span>
<span id="LC11" class="line" lang="plaintext"></span>
<span id="LC12" class="line" lang="plaintext">default cipher tests failed</span>
<span id="LC13" class="line" lang="plaintext">FAIL test-ciphers.sh (exit status: 1)</span>
<span id="LC14" class="line" lang="plaintext">tim@ryzen:~/src/gnutls$ cat tests/slow/override-ciphers.log </span>
<span id="LC15" class="line" lang="plaintext">iov.c:119:3: runtime error: null pointer passed as argument 2, which is declared to never be null</span>
<span id="LC16" class="line" lang="plaintext">    #0 0x7f574b5c3f5b in _gnutls_iov_iter_next /home/tim/src/gnutls/lib/iov.c:119</span>
<span id="LC17" class="line" lang="plaintext">    #1 0x7f574b57b482 in gnutls_aead_cipher_encryptv /home/tim/src/gnutls/lib/crypto-api.c:1043</span>
<span id="LC18" class="line" lang="plaintext">    #2 0x7f574b5ab95b in test_cipher_aead_scatter /home/tim/src/gnutls/lib/crypto-selftests.c:1028</span>
<span id="LC19" class="line" lang="plaintext">    #3 0x7f574b5ab95b in test_cipher_aead /home/tim/src/gnutls/lib/crypto-selftests.c:1292</span>
<span id="LC20" class="line" lang="plaintext">    #4 0x7f574b5b2501 in gnutls_cipher_self_test /home/tim/src/gnutls/lib/crypto-selftests.c:1892</span>
<span id="LC21" class="line" lang="plaintext">    #5 0x5583cd9f8c45 in main /home/tim/src/gnutls/tests/slow/cipher-override.c:228</span>
<span id="LC22" class="line" lang="plaintext">    #6 0x7f574a681bba in __libc_start_main ../csu/libc-start.c:308</span>
<span id="LC23" class="line" lang="plaintext">    #7 0x5583cd9f82e9 in _start (/home/tim/src/gnutls/tests/slow/.libs/cipher-override+0x32e9)</span>
<span id="LC24" class="line" lang="plaintext"></span>
<span id="LC25" class="line" lang="plaintext">overridden cipher tests failed</span>
<span id="LC26" class="line" lang="plaintext">FAIL override-ciphers (exit status: 1)</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/882">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/88e322aa4ca56520b8c1f2d2c092241d/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/882"}}</script>


</p>
</div>
</body>
</html>