<!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: #666;">
<a href="https://gitlab.com/bleem">zhengxiong luo</a> created an issue: <a href="https://gitlab.com/gnutls/gnutls/-/issues/1306">#1306</a>
</p>
<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">Using gnutls with guile disabled, null pointer may passed to <code>memcpy</code> as argument 2, causing null pointer dereference.</p>
<h2 dir="auto">
<a id="user-content-how-to-reproduce" class="anchor" href="#how-to-reproduce" aria-hidden="true"></a>How to reproduce:</h2>
<p dir="auto">You can easily reproduce this issue:</p>
<ul dir="auto">
<li>Build gnutls with UBSan:</li>
</ul>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-shell" lang="shell" v-pre="true"><code><span id="LC1" class="line" lang="shell"><span class="nv">CC</span><span class="o">=</span>clang <span class="nv">CXX</span><span class="o">=</span>clang++ <span class="nv">CFLAGS</span><span class="o">=</span><span class="s2">"-fsanitize=undefined -g"</span> <span class="nv">CXXFLAGS</span><span class="o">=</span><span class="s2">"-fsanitize=undefined -g"</span> ./bootstrap</span>
<span id="LC2" class="line" lang="shell"><span class="nv">CC</span><span class="o">=</span>clang <span class="nv">CXX</span><span class="o">=</span>clang++ <span class="nv">CFLAGS</span><span class="o">=</span><span class="s2">"-fsanitize=undefined -g"</span> <span class="nv">CXXFLAGS</span><span class="o">=</span><span class="s2">"-fsanitize=undefined -g"</span> ./configure <span class="nt">--disable-guile</span> <span class="nt">--disable-doc</span></span>
<span id="LC3" class="line" lang="shell"><span class="nv">CC</span><span class="o">=</span>clang <span class="nv">CXX</span><span class="o">=</span>clang++ <span class="nv">CFLAGS</span><span class="o">=</span><span class="s2">"-fsanitize=undefined -g"</span> <span class="nv">CXXFLAGS</span><span class="o">=</span><span class="s2">"-fsanitize=undefined -g"</span>  make</span></code></pre>
<copy-code></copy-code>
</div>
<ul dir="auto">
<li>Run server:</li>
</ul>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-shell" lang="shell" v-pre="true"><code><span id="LC1" class="line" lang="shell">./gnutls/src/.libs/gnutls-serv <span class="nt">-p</span> 7834 <span class="nt">-d</span> 9999</span></code></pre>
<copy-code></copy-code>
</div>
<ul dir="auto">
<li>Run client:</li>
</ul>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-shell" lang="shell" v-pre="true"><code><span id="LC1" class="line" lang="shell"><span class="nv">$ UBSAN_OPTIONS</span><span class="o">=</span><span class="nv">print_stacktrace</span><span class="o">=</span>1 <span class="nv">LD_LIBRARY_PATH</span><span class="o">=</span><span class="s2">"../../lib/.libs:/usr/lib64"</span>  ./gnutls-cli <span class="nt">-p</span> 7834 localhost <span class="nt">--pskusername</span> psk_identity <span class="nt">--pskkey</span> 88f3824b3e5659f52d00e959bacab954b6540344 <span class="nt">--priority</span> NORMAL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK</span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto">Then the program will crash with the following log:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-shell" lang="shell" v-pre="true"><code><span id="LC1" class="line" lang="shell">Processed 128 CA certificate<span class="o">(</span>s<span class="o">)</span><span class="nb">.</span></span>
<span id="LC2" class="line" lang="shell">Resolving <span class="s1">'localhost:7834'</span>...</span>
<span id="LC3" class="line" lang="shell">Connecting to <span class="s1">'127.0.0.1:7834'</span>...</span>
<span id="LC4" class="line" lang="shell">sha256.c:100:3: runtime error: null pointer passed as argument 2, which is declared to never be null</span>
<span id="LC5" class="line" lang="shell">/usr/include/string.h:44:28: note: nonnull attribute specified here</span>
<span id="LC6" class="line" lang="shell">    <span class="c">#0 0x7f9a7c53f146 in nettle_sha256_update /root/projects/bleem/nettle-3.6/sha256.c:100:3</span></span>
<span id="LC7" class="line" lang="shell">    <span class="c">#1 0x7f9a7d935f7d in wrap_nettle_hash_fast /root/projects/bleem/gnutls/lib/nettle/mac.c:791:2</span></span>
<span id="LC8" class="line" lang="shell">    <span class="c">#2 0x7f9a7d2bc1fd in _gnutls_hash_fast /root/projects/bleem/gnutls/lib/hash_int.c:141:8</span></span>
<span id="LC9" class="line" lang="shell">    <span class="c">#3 0x7f9a7d3b8faa in gnutls_hash_fast /root/projects/bleem/gnutls/lib/crypto-api.c:690:9</span></span>
<span id="LC10" class="line" lang="shell">    <span class="c">#4 0x7f9a7d455ee2 in _tls13_derive_secret2 /root/projects/bleem/gnutls/lib/secrets.c:98:8</span></span>
<span id="LC11" class="line" lang="shell">    <span class="c">#5 0x7f9a7d7ed3d0 in compute_binder_key /root/projects/bleem/gnutls/lib/ext/pre_shared_key.c:86:8</span></span>
<span id="LC12" class="line" lang="shell">    <span class="c">#6 0x7f9a7d7ebec1 in compute_psk_binder /root/projects/bleem/gnutls/lib/ext/pre_shared_key.c:170:8</span></span>
<span id="LC13" class="line" lang="shell">    <span class="c">#7 0x7f9a7d7f18af in client_send_params /root/projects/bleem/gnutls/lib/ext/pre_shared_key.c:486:9</span></span>
<span id="LC14" class="line" lang="shell">    <span class="c">#8 0x7f9a7d7e4820 in _gnutls_psk_send_params /root/projects/bleem/gnutls/lib/ext/pre_shared_key.c:797:10</span></span>
<span id="LC15" class="line" lang="shell">    <span class="c">#9 0x7f9a7d2df26b in hello_ext_send /root/projects/bleem/gnutls/lib/hello_ext.c:369:8</span></span>
<span id="LC16" class="line" lang="shell">    <span class="c">#10 0x7f9a7d45aa69 in _gnutls_extv_append /root/projects/bleem/gnutls/lib/extv.c:218:8</span></span>
<span id="LC17" class="line" lang="shell">    <span class="c">#11 0x7f9a7d2dd41a in _gnutls_gen_hello_extensions /root/projects/bleem/gnutls/lib/hello_ext.c:437:9</span></span>
<span id="LC18" class="line" lang="shell">    <span class="c">#12 0x7f9a7d261e96 in send_client_hello /root/projects/bleem/gnutls/lib/handshake.c:2342:8</span></span>
<span id="LC19" class="line" lang="shell">    <span class="c">#13 0x7f9a7d23c6db in handshake_client /root/projects/bleem/gnutls/lib/handshake.c:3043:9</span></span>
<span id="LC20" class="line" lang="shell">    <span class="c">#14 0x7f9a7d23b47f in gnutls_handshake /root/projects/bleem/gnutls/lib/handshake.c:2873:10</span></span>
<span id="LC21" class="line" lang="shell">    <span class="c">#15 0x4df28d in do_handshake /root/projects/bleem/gnutls/src/cli.c:1837:9</span></span>
<span id="LC22" class="line" lang="shell">    <span class="c">#16 0x4ff797 in socket_open2 /root/projects/bleem/gnutls/src/socket.c:602:10</span></span>
<span id="LC23" class="line" lang="shell">    <span class="c">#17 0x4d3f43 in main /root/projects/bleem/gnutls/src/cli.c:1363:2</span></span>
<span id="LC24" class="line" lang="shell">    <span class="c">#18 0x7f9a7ca310b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16</span></span>
<span id="LC25" class="line" lang="shell">    <span class="c">#19 0x42127d in _start (/root/projects/bleem/gnutls/src/.libs/gnutls-cli+0x42127d)</span></span>
<span id="LC26" class="line" lang="shell"></span>
<span id="LC27" class="line" lang="shell">SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior sha256.c:100:3 <span class="k">in</span></span>
<span id="LC28" class="line" lang="shell"><span class="k">***</span> Fatal error: A TLS fatal alert has been received.</span>
<span id="LC29" class="line" lang="shell"><span class="k">***</span> Received alert <span class="o">[</span>40]: Handshake failed</span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto">Here is the debug information:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-shell" lang="shell" v-pre="true"><code><span id="LC1" class="line" lang="shell"><span class="nv">$ UBSAN_OPTIONS</span><span class="o">=</span><span class="nv">print_stacktrace</span><span class="o">=</span>1 <span class="nv">LD_LIBRARY_PATH</span><span class="o">=</span><span class="s2">"./gnutls/lib/.libs:/usr/lib64"</span> gdb <span class="nt">--args</span> ./gnutls-cli <span class="nt">-p</span> 7834 localhost <span class="nt">--pskusername</span> psk_identity <span class="nt">--pskkey</span> 88f3824b3e5659f52d00e959bacab954b6540344 <span class="nt">--priority</span> NORMAL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK 127.0.0.1</span>
<span id="LC2" class="line" lang="shell">GNU gdb <span class="o">(</span>Ubuntu 9.2-0ubuntu1~20.04<span class="o">)</span> 9.2</span>
<span id="LC3" class="line" lang="shell">Copyright <span class="o">(</span>C<span class="o">)</span> 2020 Free Software Foundation, Inc.</span>
<span id="LC4" class="line" lang="shell">License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html></span>
<span id="LC5" class="line" lang="shell">This is free software: you are free to change and redistribute it.</span>
<span id="LC6" class="line" lang="shell">There is NO WARRANTY, to the extent permitted by law.</span>
<span id="LC7" class="line" lang="shell">Type <span class="s2">"show copying"</span> and <span class="s2">"show warranty"</span> <span class="k">for </span>details.</span>
<span id="LC8" class="line" lang="shell">This GDB was configured as <span class="s2">"x86_64-linux-gnu"</span><span class="nb">.</span></span>
<span id="LC9" class="line" lang="shell">Type <span class="s2">"show configuration"</span> <span class="k">for </span>configuration details.</span>
<span id="LC10" class="line" lang="shell">For bug reporting instructions, please see:</span>
<span id="LC11" class="line" lang="shell"><http://www.gnu.org/software/gdb/bugs/>.</span>
<span id="LC12" class="line" lang="shell">Find the GDB manual and other documentation resources online at:</span>
<span id="LC13" class="line" lang="shell">    <http://www.gnu.org/software/gdb/documentation/>.</span>
<span id="LC14" class="line" lang="shell"></span>
<span id="LC15" class="line" lang="shell">For <span class="nb">help</span>, <span class="nb">type</span> <span class="s2">"help"</span><span class="nb">.</span></span>
<span id="LC16" class="line" lang="shell">Type <span class="s2">"apropos word"</span> to search <span class="k">for </span>commands related to <span class="s2">"word"</span>...</span>
<span id="LC17" class="line" lang="shell">Reading symbols from ./gnutls-cli...</span>
<span id="LC18" class="line" lang="shell"><span class="o">(</span>gdb<span class="o">)</span> b /root/projects/bleem/nettle-3.6/sha256.c:100</span>
<span id="LC19" class="line" lang="shell">No <span class="nb">source </span>file named /root/projects/bleem/nettle-3.6/sha256.c.</span>
<span id="LC20" class="line" lang="shell">Make breakpoint pending on future shared library load? <span class="o">(</span>y or <span class="o">[</span>n]<span class="o">)</span> y</span>
<span id="LC21" class="line" lang="shell">Breakpoint 1 <span class="o">(</span>/root/projects/bleem/nettle-3.6/sha256.c:100<span class="o">)</span> pending.</span>
<span id="LC22" class="line" lang="shell"><span class="o">(</span>gdb<span class="o">)</span> r</span>
<span id="LC23" class="line" lang="shell">Starting program: /root/projects/bleem/gnutls/src/.libs/gnutls-cli <span class="nt">-p</span> 7834 localhost <span class="nt">--pskusername</span> psk_identity <span class="nt">--pskkey</span> 88f3824b3e5659f52d00e959bacab954b6540344 <span class="nt">--priority</span> NORMAL:-KX-ALL:+ECDHE-PSK:+DHE-PSK:+PSK 127.0.0.1</span>
<span id="LC24" class="line" lang="shell"><span class="o">[</span>Thread debugging using libthread_db enabled]</span>
<span id="LC25" class="line" lang="shell">Using host libthread_db library <span class="s2">"/lib/x86_64-linux-gnu/libthread_db.so.1"</span><span class="nb">.</span></span>
<span id="LC26" class="line" lang="shell">Processed 128 CA certificate<span class="o">(</span>s<span class="o">)</span><span class="nb">.</span></span>
<span id="LC27" class="line" lang="shell">Resolving <span class="s1">'localhost:7834'</span>...</span>
<span id="LC28" class="line" lang="shell">Connecting to <span class="s1">'127.0.0.1:7834'</span>...</span>
<span id="LC29" class="line" lang="shell"></span>
<span id="LC30" class="line" lang="shell">Breakpoint 1, nettle_sha256_update <span class="o">(</span><span class="nv">ctx</span><span class="o">=</span>0x7fffffff5620, <span class="nv">length</span><span class="o">=</span>64,</span>
<span id="LC31" class="line" lang="shell">    <span class="nv">data</span><span class="o">=</span>0x7fffffff52a0 <span class="s1">'\\'</span> <repeats 64 <span class="nb">times</span><span class="o">></span>, <span class="s2">"</span><span class="se">\3</span><span class="s2">01</span><span class="se">\3</span><span class="s2">15</span><span class="se">\0</span><span class="s2">01</span><span class="se">\2</span><span class="s2">02</span><span class="se">\2</span><span class="s2">14q</span><span class="se">\2</span><span class="s2">50"</span><span class="o">)</span> at sha256.c:100</span>
<span id="LC32" class="line" lang="shell">100     sha256.c</span>
<span id="LC33" class="line" lang="shell"><span class="o">(</span>gdb<span class="o">)</span> c</span>
<span id="LC34" class="line" lang="shell">Continuing.</span>
<span id="LC35" class="line" lang="shell"></span>
<span id="LC36" class="line" lang="shell">Breakpoint 1, nettle_sha256_update <span class="o">(</span><span class="nv">ctx</span><span class="o">=</span>0x7fffffff5690, <span class="nv">length</span><span class="o">=</span>64,</span>
<span id="LC37" class="line" lang="shell">    <span class="nv">data</span><span class="o">=</span>0x7fffffff52a0 <span class="s1">'6'</span> <repeats 64 <span class="nb">times</span><span class="o">></span>, <span class="s2">"</span><span class="se">\3</span><span class="s2">01</span><span class="se">\3</span><span class="s2">15</span><span class="se">\0</span><span class="s2">01</span><span class="se">\2</span><span class="s2">02</span><span class="se">\2</span><span class="s2">14q</span><span class="se">\2</span><span class="s2">50"</span><span class="o">)</span> at sha256.c:100</span>
<span id="LC38" class="line" lang="shell">100     <span class="k">in </span>sha256.c</span>
<span id="LC39" class="line" lang="shell"><span class="o">(</span>gdb<span class="o">)</span></span>
<span id="LC40" class="line" lang="shell">Continuing.</span>
<span id="LC41" class="line" lang="shell"></span>
<span id="LC42" class="line" lang="shell">Breakpoint 1, nettle_sha256_update <span class="o">(</span><span class="nv">ctx</span><span class="o">=</span>0x7fffffff5700, <span class="nv">length</span><span class="o">=</span>20, <span class="nv">data</span><span class="o">=</span>0x603000029830 <span class="s2">"</span><span class="se">\2</span><span class="s2">10</span><span class="se">\3</span><span class="s2">63</span><span class="se">\2</span><span class="s2">02K>VY</span><span class="se">\3</span><span class="s2">65-"</span><span class="o">)</span></span>
<span id="LC43" class="line" lang="shell">    at sha256.c:100</span>
<span id="LC44" class="line" lang="shell">100     <span class="k">in </span>sha256.c</span>
<span id="LC45" class="line" lang="shell"><span class="o">(</span>gdb<span class="o">)</span></span>
<span id="LC46" class="line" lang="shell">Continuing.</span>
<span id="LC47" class="line" lang="shell"></span>
<span id="LC48" class="line" lang="shell">Breakpoint 1, nettle_sha256_update <span class="o">(</span><span class="nv">ctx</span><span class="o">=</span>0x7fffffff5700, <span class="nv">length</span><span class="o">=</span>32,</span>
<span id="LC49" class="line" lang="shell">    <span class="nv">data</span><span class="o">=</span>0x7fffffff53c0 <span class="s2">"</span><span class="se">\2</span><span class="s2">24(</span><span class="se">\2</span><span class="s2">04</span><span class="se">\3</span><span class="s2">65</span><span class="se">\3</span><span class="s2">62W</span><span class="se">\0</span><span class="s2">02</span><span class="se">\3</span><span class="s2">31</span><span class="se">\3</span><span class="s2">27+</span><span class="se">\2</span><span class="s2">00</span><span class="se">\2</span><span class="s2">50</span><span class="se">\2</span><span class="s2">57</span><span class="se">\2</span><span class="s2">34</span><span class="se">\0</span><span class="s2">17</span><span class="se">\2</span><span class="s2">56m8(q5</span><span class="se">\2</span><span class="s2">67</span><span class="se">\2</span><span class="s2">00x</span><span class="se">\2</span><span class="s2">36</span><span class="se">\3</span><span class="s2">32<</span><span class="se">\0</span><span class="s2">23</span><span class="se">\0</span><span class="s2">04</span><span class="se">\3</span><span class="s2">05</span><span class="se">\0</span><span class="s2">67X"</span><span class="o">)</span> at sha256.c:100</span>
<span id="LC50" class="line" lang="shell">100     <span class="k">in </span>sha256.c</span>
<span id="LC51" class="line" lang="shell"><span class="o">(</span>gdb<span class="o">)</span></span>
<span id="LC52" class="line" lang="shell">Continuing.</span>
<span id="LC53" class="line" lang="shell"></span>
<span id="LC54" class="line" lang="shell">Breakpoint 1, nettle_sha256_update <span class="o">(</span><span class="nv">ctx</span><span class="o">=</span>0x7fffffff6720, <span class="nv">length</span><span class="o">=</span>0, <span class="nv">data</span><span class="o">=</span>0x0<span class="o">)</span> at sha256.c:100</span>
<span id="LC55" class="line" lang="shell">100     <span class="k">in </span>sha256.c</span>
<span id="LC56" class="line" lang="shell"><span class="o">(</span>gdb<span class="o">)</span></span>
<span id="LC57" class="line" lang="shell">Continuing.</span>
<span id="LC58" class="line" lang="shell">sha256.c:100:3: runtime error: null pointer passed as argument 2, which is declared to never be null</span>
<span id="LC59" class="line" lang="shell">/usr/include/string.h:44:28: note: nonnull attribute specified here</span>
<span id="LC60" class="line" lang="shell"><span class="o">[</span>Detaching after fork from child process 3176009]</span>
<span id="LC61" class="line" lang="shell">    <span class="c">#0 0x7ffff6799146 in nettle_sha256_update /root/projects/bleem/nettle-3.6/sha256.c:100:3</span></span>
<span id="LC62" class="line" lang="shell">    <span class="c">#1 0x7ffff7b8ff7d in wrap_nettle_hash_fast /root/projects/bleem/gnutls/lib/nettle/mac.c:791:2</span></span>
<span id="LC63" class="line" lang="shell">    <span class="c">#2 0x7ffff75161fd in _gnutls_hash_fast /root/projects/bleem/gnutls/lib/hash_int.c:141:8</span></span>
<span id="LC64" class="line" lang="shell">    <span class="c">#3 0x7ffff7612faa in gnutls_hash_fast /root/projects/bleem/gnutls/lib/crypto-api.c:690:9</span></span>
<span id="LC65" class="line" lang="shell">    <span class="c">#4 0x7ffff76afee2 in _tls13_derive_secret2 /root/projects/bleem/gnutls/lib/secrets.c:98:8</span></span>
<span id="LC66" class="line" lang="shell">    <span class="c">#5 0x7ffff7a473d0 in compute_binder_key /root/projects/bleem/gnutls/lib/ext/pre_shared_key.c:86:8</span></span>
<span id="LC67" class="line" lang="shell">    <span class="c">#6 0x7ffff7a45ec1 in compute_psk_binder /root/projects/bleem/gnutls/lib/ext/pre_shared_key.c:170:8</span></span>
<span id="LC68" class="line" lang="shell">    <span class="c">#7 0x7ffff7a4b8af in client_send_params /root/projects/bleem/gnutls/lib/ext/pre_shared_key.c:486:9</span></span>
<span id="LC69" class="line" lang="shell">    <span class="c">#8 0x7ffff7a3e820 in _gnutls_psk_send_params /root/projects/bleem/gnutls/lib/ext/pre_shared_key.c:797:10</span></span>
<span id="LC70" class="line" lang="shell">    <span class="c">#9 0x7ffff753926b in hello_ext_send /root/projects/bleem/gnutls/lib/hello_ext.c:369:8</span></span>
<span id="LC71" class="line" lang="shell">    <span class="c">#10 0x7ffff76b4a69 in _gnutls_extv_append /root/projects/bleem/gnutls/lib/extv.c:218:8</span></span>
<span id="LC72" class="line" lang="shell">    <span class="c">#11 0x7ffff753741a in _gnutls_gen_hello_extensions /root/projects/bleem/gnutls/lib/hello_ext.c:437:9</span></span>
<span id="LC73" class="line" lang="shell">    <span class="c">#12 0x7ffff74bbe96 in send_client_hello /root/projects/bleem/gnutls/lib/handshake.c:2342:8</span></span>
<span id="LC74" class="line" lang="shell">    <span class="c">#13 0x7ffff74966db in handshake_client /root/projects/bleem/gnutls/lib/handshake.c:3043:9</span></span>
<span id="LC75" class="line" lang="shell">    <span class="c">#14 0x7ffff749547f in gnutls_handshake /root/projects/bleem/gnutls/lib/handshake.c:2873:10</span></span>
<span id="LC76" class="line" lang="shell">    <span class="c">#15 0x4df28d in do_handshake /root/projects/bleem/gnutls/src/cli.c:1837:9</span></span>
<span id="LC77" class="line" lang="shell">    <span class="c">#16 0x4ff797 in socket_open2 /root/projects/bleem/gnutls/src/socket.c:602:10</span></span>
<span id="LC78" class="line" lang="shell">    <span class="c">#17 0x4d3f43 in main /root/projects/bleem/gnutls/src/cli.c:1363:2</span></span>
<span id="LC79" class="line" lang="shell">    <span class="c">#18 0x7ffff6c8b0b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16</span></span>
<span id="LC80" class="line" lang="shell">    <span class="c">#19 0x42127d in _start (/root/projects/bleem/gnutls/src/.libs/gnutls-cli+0x42127d)</span></span>
<span id="LC81" class="line" lang="shell"></span>
<span id="LC82" class="line" lang="shell">SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior sha256.c:100:3 <span class="k">in</span></span>
<span id="LC83" class="line" lang="shell"></span>
<span id="LC84" class="line" lang="shell">Breakpoint 1, nettle_sha256_update <span class="o">(</span><span class="nv">ctx</span><span class="o">=</span>0x7fffffff5240, <span class="nv">length</span><span class="o">=</span>64,</span>
<span id="LC85" class="line" lang="shell">    <span class="nv">data</span><span class="o">=</span>0x7fffffff4ec0 <span class="s2">"</span><span class="se">\3</span><span class="s2">10:</span><span class="se">\2</span><span class="s2">16</span><span class="se">\3</span><span class="s2">41j</span><span class="se">\1</span><span class="s2">77</span><span class="se">\2</span><span class="s2">24</span><span class="se">\0</span><span class="s2">20ݚqs</span><span class="se">\2</span><span class="s2">25</span><span class="se">\3</span><span class="s2">72</span><span class="se">\t</span><span class="s2">V</span><span class="se">\2</span><span class="s2">30</span><span class="se">\3</span><span class="s2">57</span><span class="se">\2</span><span class="s2">42</span><span class="nv">$*</span><span class="se">\2</span><span class="s2">71</span><span class="se">\0</span><span class="s2">03</span><span class="se">\0</span><span class="s2">26</span><span class="se">\\\2</span><span class="s2">34nȓ</span><span class="se">\3</span><span class="s2">43]</span><span class="se">\2</span><span class="s2">31"</span>, <span class="s1">'\\'</span> <repeats 32 <span class="nb">times</span><span class="o">></span>, <span class="s2">"</span><span class="se">\0</span><span class="s2">01"</span><span class="o">)</span> at sha256.c:100</span>
<span id="LC86" class="line" lang="shell">100     <span class="k">in </span>sha256.c</span></code></pre>
<copy-code></copy-code>
</div>

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

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1306">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/4260a843097307c13f683d1b5a8fbf5e/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/1306"}}</script>


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