<!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 style="color: #777777;">
<a href="https://gitlab.com/rockdaboot">Tim Rühsen</a>
commented on a
discussion on <a href="https://gitlab.com/gnutls/gnutls/merge_requests/1136#note_266281221">.gitlab-ci.yml</a>:
</p>
<table>
<tr class="line_holder" id="">
<td class="diff-line-num old_line" data-linenumber="592" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
592
</td>
<td class="diff-line-num new_line" data-linenumber="592" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
592
</td>
<td class="line_content" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC592" class="line" lang="yaml"> <span class="na" style="color: #008080;">stage</span><span class="pi">:</span> <span class="s" style="color: #d14;">stage1-testing</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="">
<td class="diff-line-num old_line" data-linenumber="593" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
593
</td>
<td class="diff-line-num new_line" data-linenumber="593" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
593
</td>
<td class="line_content" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC593" class="line" lang="yaml"> <span class="na" style="color: #008080;">image</span><span class="pi">:</span> <span class="s" style="color: #d14;">$CI_REGISTRY/$BUILD_IMAGES_PROJECT:$DEBIAN_X86_CROSS_BUILD</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="">
<td class="diff-line-num old_line" data-linenumber="594" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
594
</td>
<td class="diff-line-num new_line" data-linenumber="594" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
594
</td>
<td class="line_content" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC594" class="line" lang="yaml"> <span class="na" style="color: #008080;">script</span><span class="pi">:</span></span>
</pre>
</td>
</tr>
<tr class="line_holder new" id="">
<td class="diff-line-num new old_line" data-linenumber="595" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
</td>
<td class="diff-line-num new new_line" data-linenumber="595" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
595
</td>
<td class="line_content new" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#ecfdf0">
<pre style="margin: 0;">+<span id="LC595" class="line" lang="yaml"> <span class="pi">-</span> <span class="s" style="color: #d14;">apt-get install -y datefudge:amd64</span></span>
</pre>
</td>
</tr>
</table>
<div style="">
<p dir="auto">Added the following exceptions to <code>devel/ubsan.supp</code>, all unsigned-integer-overflows which <em>should</em> be avoided but are <em>not</em> UB.</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true" style="background-color: #fff; font-family: monospace; font-size: 90%; -premailer-cellpadding: 0; -premailer-cellspacing: 0; -premailer-width: 100%; margin: 0;"><code><span id="LC1" class="line" lang="plaintext">buffers.c:1135:36: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned int'</span>
<span id="LC2" class="line" lang="plaintext"> #0 0x7fa51f193919 in get_last_packet /gnutls/lib/buffers.c:1135:36</span>
<span id="LC3" class="line" lang="plaintext"> #1 0x7fa51f192982 in _gnutls_handshake_io_recv_int /gnutls/lib/buffers.c:1407:8</span>
<span id="LC4" class="line" lang="plaintext"> #2 0x7fa51f1989be in _gnutls_recv_handshake /gnutls/lib/handshake.c:1522:8</span>
<span id="LC5" class="line" lang="plaintext"> #3 0x7fa51f1a1fe3 in handshake_client /gnutls/lib/handshake.c:2999:8</span>
<span id="LC6" class="line" lang="plaintext"> #4 0x7fa51f1a11b7 in gnutls_handshake /gnutls/lib/handshake.c:2727:10</span>
<span id="LC7" class="line" lang="plaintext"> #5 0x4f21a7 in client /gnutls/tests/mini-overhead.c:155:9</span>
<span id="LC8" class="line" lang="plaintext"> #6 0x4f1cb2 in start /gnutls/tests/mini-overhead.c:304:3</span>
<span id="LC9" class="line" lang="plaintext"> #7 0x4f1901 in doit /gnutls/tests/mini-overhead.c:325:2</span>
<span id="LC10" class="line" lang="plaintext"> #8 0x4f34ef in main /gnutls/tests/utils.c:254:2</span>
<span id="LC11" class="line" lang="plaintext"> #9 0x7fa51e8281a2 in __libc_start_main (/lib64/libc.so.6+0x271a2)</span>
<span id="LC12" class="line" lang="plaintext"> #10 0x41c59d in _start (/gnutls/tests/mini-overhead+0x41c59d)</span>
<span id="LC13" class="line" lang="plaintext"></span>
<span id="LC14" class="line" lang="plaintext">SUMMARY: UndefinedBehaviorSanitizer: unsigned-integer-overflow buffers.c:1135:36 in </span>
<span id="LC15" class="line" lang="plaintext">pk.c:668:12: runtime error: negation of 1 cannot be represented in type 'unsigned int'</span>
<span id="LC16" class="line" lang="plaintext"> #0 0x7fa51f4352eb in _wrap_nettle_pk_decrypt2 /gnutls/lib/nettle/pk.c:668:12</span>
<span id="LC17" class="line" lang="plaintext"> #1 0x7fa51f23455f in gnutls_privkey_decrypt_data2 /gnutls/lib/privkey.c:1617:10</span>
<span id="LC18" class="line" lang="plaintext"> #2 0x7fa51f414d32 in proc_rsa_client_kx /gnutls/lib/auth/rsa.c:210:6</span>
<span id="LC19" class="line" lang="plaintext"> #3 0x7fa51f1b94e7 in _gnutls_recv_client_kx_message /gnutls/lib/kx.c:570:7</span>
<span id="LC20" class="line" lang="plaintext"> #4 0x7fa51f1a6023 in handshake_server /gnutls/lib/handshake.c:3461:10</span>
<span id="LC21" class="line" lang="plaintext"> #5 0x7fa51f1a121d in gnutls_handshake /gnutls/lib/handshake.c:2730:9</span>
<span id="LC22" class="line" lang="plaintext"> #6 0x4f1e17 in server /gnutls/tests/mini-overhead.c:249:9</span>
<span id="LC23" class="line" lang="plaintext"> #7 0x4f1b69 in start /gnutls/tests/mini-overhead.c:299:3</span>
<span id="LC24" class="line" lang="plaintext"> #8 0x4f1901 in doit /gnutls/tests/mini-overhead.c:325:2</span>
<span id="LC25" class="line" lang="plaintext"> #9 0x4f34ef in main /gnutls/tests/utils.c:254:2</span>
<span id="LC26" class="line" lang="plaintext"> #10 0x7fa51e8281a2 in __libc_start_main (/lib64/libc.so.6+0x271a2)</span>
<span id="LC27" class="line" lang="plaintext"> #11 0x41c59d in _start (/gnutls/tests/mini-overhead+0x41c59d)</span>
<span id="LC28" class="line" lang="plaintext"></span>
<span id="LC29" class="line" lang="plaintext">SUMMARY: UndefinedBehaviorSanitizer: unsigned-integer-overflow pk.c:668:12 in </span>
<span id="LC30" class="line" lang="plaintext">rsa.c:235:8: runtime error: negation of 1 cannot be represented in type 'unsigned int'</span>
<span id="LC31" class="line" lang="plaintext"> #0 0x7fa51f415450 in proc_rsa_client_kx /gnutls/lib/auth/rsa.c:235:8</span>
<span id="LC32" class="line" lang="plaintext"> #1 0x7fa51f1b94e7 in _gnutls_recv_client_kx_message /gnutls/lib/kx.c:570:7</span>
<span id="LC33" class="line" lang="plaintext"> #2 0x7fa51f1a6023 in handshake_server /gnutls/lib/handshake.c:3461:10</span>
<span id="LC34" class="line" lang="plaintext"> #3 0x7fa51f1a121d in gnutls_handshake /gnutls/lib/handshake.c:2730:9</span>
<span id="LC35" class="line" lang="plaintext"> #4 0x4f1e17 in server /gnutls/tests/mini-overhead.c:249:9</span>
<span id="LC36" class="line" lang="plaintext"> #5 0x4f1b69 in start /gnutls/tests/mini-overhead.c:299:3</span>
<span id="LC37" class="line" lang="plaintext"> #6 0x4f1901 in doit /gnutls/tests/mini-overhead.c:325:2</span>
<span id="LC38" class="line" lang="plaintext"> #7 0x4f34ef in main /gnutls/tests/utils.c:254:2</span>
<span id="LC39" class="line" lang="plaintext"> #8 0x7fa51e8281a2 in __libc_start_main (/lib64/libc.so.6+0x271a2)</span>
<span id="LC40" class="line" lang="plaintext"> #9 0x41c59d in _start (/gnutls/tests/mini-overhead+0x41c59d)</span>
<span id="LC41" class="line" lang="plaintext"></span>
<span id="LC42" class="line" lang="plaintext">SUMMARY: UndefinedBehaviorSanitizer: unsigned-integer-overflow rsa.c:235:8 in </span></code></pre>
</div>
</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/merge_requests/1136#note_266281221">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/5531f8032752c260f38a4c0cf1fd139f/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 Merge request","url":"https://gitlab.com/gnutls/gnutls/merge_requests/1136#note_266281221"}}</script>
</p>
</div>
</body>
</html>