<!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/tongxiaoge1001">tongxiaoge1001</a> created an issue: <a href="https://gitlab.com/gnutls/gnutls/-/issues/1328">#1328</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">`==3981579==ERROR: LeakSanitizer: detected memory leaks</p>
<p dir="auto">Direct leak of 16 byte(s) in 1 object(s) allocated from:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true" style="border-radius: 2px; margin: 0 0 8px; padding: 8px 12px; border: 1px solid #dbdbdb;"><code><span id="LC1" class="line" lang="plaintext">#0 0x52284d in malloc /src/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3</span>
<span id="LC2" class="line" lang="plaintext">#1 0x7606ad in wrap_nettle_mpi_init /src/gnutls/lib/nettle/mpi.c:79:6</span>
<span id="LC3" class="line" lang="plaintext">#2 0x7611de in wrap_nettle_mpi_copy /src/gnutls/lib/nettle/mpi.c:189:8</span>
<span id="LC4" class="line" lang="plaintext">#3 0x77a005 in set_dh_pk_params /src/gnutls/lib/dh.c:58:53</span>
<span id="LC5" class="line" lang="plaintext">#4 0x7790c7 in _gnutls_figure_dh_params /src/gnutls/lib/dh.c:178:8</span>
<span id="LC6" class="line" lang="plaintext">#5 0x7bff56 in gen_dhe_server_kx /src/gnutls/lib/auth/dhe.c:107:6</span>
<span id="LC7" class="line" lang="plaintext">#6 0x59d6f6 in _gnutls_send_server_kx_message /src/gnutls/lib/kx.c:289:7</span>
<span id="LC8" class="line" lang="plaintext">#7 0x590450 in handshake_server /src/gnutls/lib/handshake.c:3450:8</span>
<span id="LC9" class="line" lang="plaintext">#8 0x58aa34 in gnutls_handshake /src/gnutls/lib/handshake.c:2773:9</span>
<span id="LC10" class="line" lang="plaintext">#9 0x555cc7 in LLVMFuzzerTestOneInput /src/gnutls/fuzz/gnutls_server_rawpk_fuzzer.c:90:9</span>
<span id="LC11" class="line" lang="plaintext">#10 0x45bb23 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:599:15</span>
<span id="LC12" class="line" lang="plaintext">#11 0x447292 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:323:6</span>
<span id="LC13" class="line" lang="plaintext">#12 0x44cf36 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:856:9</span>
<span id="LC14" class="line" lang="plaintext">#13 0x476442 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10</span>
<span id="LC15" class="line" lang="plaintext">#14 0x7f65d4b05b26 in __libc_start_main (/lib64/libc.so.6+0x25b26)</span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto">DEDUP_TOKEN: malloc--wrap_nettle_mpi_init--wrap_nettle_mpi_copy
Direct leak of 16 byte(s) in 1 object(s) allocated from:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true" style="border-radius: 2px; margin: 0 0 8px; padding: 8px 12px; border: 1px solid #dbdbdb;"><code><span id="LC1" class="line" lang="plaintext">#0 0x52284d in malloc /src/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3</span>
<span id="LC2" class="line" lang="plaintext">#1 0x7606ad in wrap_nettle_mpi_init /src/gnutls/lib/nettle/mpi.c:79:6</span>
<span id="LC3" class="line" lang="plaintext">#2 0x7611de in wrap_nettle_mpi_copy /src/gnutls/lib/nettle/mpi.c:189:8</span>
<span id="LC4" class="line" lang="plaintext">#3 0x779fac in set_dh_pk_params /src/gnutls/lib/dh.c:51:52</span>
<span id="LC5" class="line" lang="plaintext">#4 0x7790c7 in _gnutls_figure_dh_params /src/gnutls/lib/dh.c:178:8</span>
<span id="LC6" class="line" lang="plaintext">#5 0x7bff56 in gen_dhe_server_kx /src/gnutls/lib/auth/dhe.c:107:6</span>
<span id="LC7" class="line" lang="plaintext">#6 0x59d6f6 in _gnutls_send_server_kx_message /src/gnutls/lib/kx.c:289:7</span>
<span id="LC8" class="line" lang="plaintext">#7 0x590450 in handshake_server /src/gnutls/lib/handshake.c:3450:8</span>
<span id="LC9" class="line" lang="plaintext">#8 0x58aa34 in gnutls_handshake /src/gnutls/lib/handshake.c:2773:9</span>
<span id="LC10" class="line" lang="plaintext">#9 0x555cc7 in LLVMFuzzerTestOneInput /src/gnutls/fuzz/gnutls_server_rawpk_fuzzer.c:90:9</span>
<span id="LC11" class="line" lang="plaintext">#10 0x45bb23 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:599:15</span>
<span id="LC12" class="line" lang="plaintext">#11 0x447292 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:323:6</span>
<span id="LC13" class="line" lang="plaintext">#12 0x44cf36 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:856:9</span>
<span id="LC14" class="line" lang="plaintext">#13 0x476442 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10</span>
<span id="LC15" class="line" lang="plaintext">#14 0x7f65d4b05b26 in __libc_start_main (/lib64/libc.so.6+0x25b26)</span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto">DEDUP_TOKEN: malloc--wrap_nettle_mpi_init--wrap_nettle_mpi_copy
Direct leak of 16 byte(s) in 1 object(s) allocated from:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true" style="border-radius: 2px; margin: 0 0 8px; padding: 8px 12px; border: 1px solid #dbdbdb;"><code><span id="LC1" class="line" lang="plaintext">#0 0x52284d in malloc /src/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3</span>
<span id="LC2" class="line" lang="plaintext">#1 0x7606ad in wrap_nettle_mpi_init /src/gnutls/lib/nettle/mpi.c:79:6</span>
<span id="LC3" class="line" lang="plaintext">#2 0x76088f in wrap_nettle_mpi_init_multi /src/gnutls/lib/nettle/mpi.c:98:8</span>
<span id="LC4" class="line" lang="plaintext">#3 0x76b5b1 in wrap_nettle_pk_generate_keys /src/gnutls/lib/nettle/pk.c:2242:10</span>
<span id="LC5" class="line" lang="plaintext">#4 0x739439 in _gnutls_dh_common_print_server_kx /src/gnutls/lib/auth/dh_common.c:340:6</span>
<span id="LC6" class="line" lang="plaintext">#5 0x7bff94 in gen_dhe_server_kx /src/gnutls/lib/auth/dhe.c:115:6</span>
<span id="LC7" class="line" lang="plaintext">#6 0x59d6f6 in _gnutls_send_server_kx_message /src/gnutls/lib/kx.c:289:7</span>
<span id="LC8" class="line" lang="plaintext">#7 0x590450 in handshake_server /src/gnutls/lib/handshake.c:3450:8</span>
<span id="LC9" class="line" lang="plaintext">#8 0x58aa34 in gnutls_handshake /src/gnutls/lib/handshake.c:2773:9</span>
<span id="LC10" class="line" lang="plaintext">#9 0x555cc7 in LLVMFuzzerTestOneInput /src/gnutls/fuzz/gnutls_server_rawpk_fuzzer.c:90:9</span>
<span id="LC11" class="line" lang="plaintext">#10 0x45bb23 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:599:15</span>
<span id="LC12" class="line" lang="plaintext">#11 0x447292 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:323:6</span>
<span id="LC13" class="line" lang="plaintext">#12 0x44cf36 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:856:9</span>
<span id="LC14" class="line" lang="plaintext">#13 0x476442 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10</span>
<span id="LC15" class="line" lang="plaintext">#14 0x7f65d4b05b26 in __libc_start_main (/lib64/libc.so.6+0x25b26)</span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto">DEDUP_TOKEN: malloc--wrap_nettle_mpi_init--wrap_nettle_mpi_init_multi
Direct leak of 16 byte(s) in 1 object(s) allocated from:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true" style="border-radius: 2px; margin: 0 0 8px; padding: 8px 12px; border: 1px solid #dbdbdb;"><code><span id="LC1" class="line" lang="plaintext">#0 0x52284d in malloc /src/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3</span>
<span id="LC2" class="line" lang="plaintext">#1 0x7606ad in wrap_nettle_mpi_init /src/gnutls/lib/nettle/mpi.c:79:6</span>
<span id="LC3" class="line" lang="plaintext">#2 0x7611de in wrap_nettle_mpi_copy /src/gnutls/lib/nettle/mpi.c:189:8</span>
<span id="LC4" class="line" lang="plaintext">#3 0x779f5a in set_dh_pk_params /src/gnutls/lib/dh.c:47:52</span>
<span id="LC5" class="line" lang="plaintext">#4 0x7790c7 in _gnutls_figure_dh_params /src/gnutls/lib/dh.c:178:8</span>
<span id="LC6" class="line" lang="plaintext">#5 0x7bff56 in gen_dhe_server_kx /src/gnutls/lib/auth/dhe.c:107:6</span>
<span id="LC7" class="line" lang="plaintext">#6 0x59d6f6 in _gnutls_send_server_kx_message /src/gnutls/lib/kx.c:289:7</span>
<span id="LC8" class="line" lang="plaintext">#7 0x590450 in handshake_server /src/gnutls/lib/handshake.c:3450:8</span>
<span id="LC9" class="line" lang="plaintext">#8 0x58aa34 in gnutls_handshake /src/gnutls/lib/handshake.c:2773:9</span>
<span id="LC10" class="line" lang="plaintext">#9 0x555cc7 in LLVMFuzzerTestOneInput /src/gnutls/fuzz/gnutls_server_rawpk_fuzzer.c:90:9</span>
<span id="LC11" class="line" lang="plaintext">#10 0x45bb23 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:599:15</span>
<span id="LC12" class="line" lang="plaintext">#11 0x447292 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:323:6</span>
<span id="LC13" class="line" lang="plaintext">#12 0x44cf36 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:856:9</span>
<span id="LC14" class="line" lang="plaintext">#13 0x476442 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10</span>
<span id="LC15" class="line" lang="plaintext">#14 0x7f65d4b05b26 in __libc_start_main (/lib64/libc.so.6+0x25b26)</span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto">DEDUP_TOKEN: malloc--wrap_nettle_mpi_init--wrap_nettle_mpi_copy
Direct leak of 16 byte(s) in 1 object(s) allocated from:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true" style="border-radius: 2px; margin: 0 0 8px; padding: 8px 12px; border: 1px solid #dbdbdb;"><code><span id="LC1" class="line" lang="plaintext">#0 0x52284d in malloc /src/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3</span>
<span id="LC2" class="line" lang="plaintext">#1 0x7606ad in wrap_nettle_mpi_init /src/gnutls/lib/nettle/mpi.c:79:6</span>
<span id="LC3" class="line" lang="plaintext">#2 0x7609ba in wrap_nettle_mpi_init_multi /src/gnutls/lib/nettle/mpi.c:109:10</span>
<span id="LC4" class="line" lang="plaintext">#3 0x76b5b1 in wrap_nettle_pk_generate_keys /src/gnutls/lib/nettle/pk.c:2242:10</span>
<span id="LC5" class="line" lang="plaintext">#4 0x739439 in _gnutls_dh_common_print_server_kx /src/gnutls/lib/auth/dh_common.c:340:6</span>
<span id="LC6" class="line" lang="plaintext">#5 0x7bff94 in gen_dhe_server_kx /src/gnutls/lib/auth/dhe.c:115:6</span>
<span id="LC7" class="line" lang="plaintext">#6 0x59d6f6 in _gnutls_send_server_kx_message /src/gnutls/lib/kx.c:289:7</span>
<span id="LC8" class="line" lang="plaintext">#7 0x590450 in handshake_server /src/gnutls/lib/handshake.c:3450:8</span>
<span id="LC9" class="line" lang="plaintext">#8 0x58aa34 in gnutls_handshake /src/gnutls/lib/handshake.c:2773:9</span>
<span id="LC10" class="line" lang="plaintext">#9 0x555cc7 in LLVMFuzzerTestOneInput /src/gnutls/fuzz/gnutls_server_rawpk_fuzzer.c:90:9</span>
<span id="LC11" class="line" lang="plaintext">#10 0x45bb23 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:599:15</span>
<span id="LC12" class="line" lang="plaintext">#11 0x447292 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:323:6</span>
<span id="LC13" class="line" lang="plaintext">#12 0x44cf36 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:856:9</span>
<span id="LC14" class="line" lang="plaintext">#13 0x476442 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10</span>
<span id="LC15" class="line" lang="plaintext">#14 0x7f65d4b05b26 in __libc_start_main (/lib64/libc.so.6+0x25b26)</span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto">DEDUP_TOKEN: malloc--wrap_nettle_mpi_init--wrap_nettle_mpi_init_multi
Indirect leak of 384 byte(s) in 1 object(s) allocated from:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true" style="border-radius: 2px; margin: 0 0 8px; padding: 8px 12px; border: 1px solid #dbdbdb;"><code><span id="LC1" class="line" lang="plaintext">#0 0x52284d in malloc /src/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3</span>
<span id="LC2" class="line" lang="plaintext">#1 0x8ce708 in __gmp_default_allocate /src/gmp/memory.c:53:9</span>
<span id="LC3" class="line" lang="plaintext">#2 0x892088 in __gmpz_realloc /src/gmp/mpz/realloc.c:63:12</span>
<span id="LC4" class="line" lang="plaintext">#3 0x8929d8 in __gmpz_set /src/gmp/mpz/set.c:43:8</span>
<span id="LC5" class="line" lang="plaintext">#4 0x761216 in wrap_nettle_mpi_copy /src/gnutls/lib/nettle/mpi.c:193:2</span>
<span id="LC6" class="line" lang="plaintext">#5 0x779fac in set_dh_pk_params /src/gnutls/lib/dh.c:51:52</span>
<span id="LC7" class="line" lang="plaintext">#6 0x7790c7 in _gnutls_figure_dh_params /src/gnutls/lib/dh.c:178:8</span>
<span id="LC8" class="line" lang="plaintext">#7 0x7bff56 in gen_dhe_server_kx /src/gnutls/lib/auth/dhe.c:107:6</span>
<span id="LC9" class="line" lang="plaintext">#8 0x59d6f6 in _gnutls_send_server_kx_message /src/gnutls/lib/kx.c:289:7</span>
<span id="LC10" class="line" lang="plaintext">#9 0x590450 in handshake_server /src/gnutls/lib/handshake.c:3450:8</span>
<span id="LC11" class="line" lang="plaintext">#10 0x58aa34 in gnutls_handshake /src/gnutls/lib/handshake.c:2773:9</span>
<span id="LC12" class="line" lang="plaintext">#11 0x555cc7 in LLVMFuzzerTestOneInput /src/gnutls/fuzz/gnutls_server_rawpk_fuzzer.c:90:9</span>
<span id="LC13" class="line" lang="plaintext">#12 0x45bb23 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:599:15</span>
<span id="LC14" class="line" lang="plaintext">#13 0x447292 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:323:6</span>
<span id="LC15" class="line" lang="plaintext">#14 0x44cf36 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:856:9</span>
<span id="LC16" class="line" lang="plaintext">#15 0x476442 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10</span>
<span id="LC17" class="line" lang="plaintext">#16 0x7f65d4b05b26 in __libc_start_main (/lib64/libc.so.6+0x25b26)</span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto">DEDUP_TOKEN: malloc--__gmp_default_allocate--__gmpz_realloc
Indirect leak of 384 byte(s) in 1 object(s) allocated from:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true" style="border-radius: 2px; margin: 0 0 8px; padding: 8px 12px; border: 1px solid #dbdbdb;"><code><span id="LC1" class="line" lang="plaintext">#0 0x52284d in malloc /src/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3</span>
<span id="LC2" class="line" lang="plaintext">#1 0x8ce708 in __gmp_default_allocate /src/gmp/memory.c:53:9</span>
<span id="LC3" class="line" lang="plaintext">#2 0x892088 in __gmpz_realloc /src/gmp/mpz/realloc.c:63:12</span>
<span id="LC4" class="line" lang="plaintext">#3 0x8929d8 in __gmpz_set /src/gmp/mpz/set.c:43:8</span>
<span id="LC5" class="line" lang="plaintext">#4 0x76b616 in wrap_nettle_pk_generate_keys /src/gnutls/lib/nettle/pk.c:2249:4</span>
<span id="LC6" class="line" lang="plaintext">#5 0x739439 in _gnutls_dh_common_print_server_kx /src/gnutls/lib/auth/dh_common.c:340:6</span>
<span id="LC7" class="line" lang="plaintext">#6 0x7bff94 in gen_dhe_server_kx /src/gnutls/lib/auth/dhe.c:115:6</span>
<span id="LC8" class="line" lang="plaintext">#7 0x59d6f6 in _gnutls_send_server_kx_message /src/gnutls/lib/kx.c:289:7</span>
<span id="LC9" class="line" lang="plaintext">#8 0x590450 in handshake_server /src/gnutls/lib/handshake.c:3450:8</span>
<span id="LC10" class="line" lang="plaintext">#9 0x58aa34 in gnutls_handshake /src/gnutls/lib/handshake.c:2773:9</span>
<span id="LC11" class="line" lang="plaintext">#10 0x555cc7 in LLVMFuzzerTestOneInput /src/gnutls/fuzz/gnutls_server_rawpk_fuzzer.c:90:9</span>
<span id="LC12" class="line" lang="plaintext">#11 0x45bb23 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:599:15</span>
<span id="LC13" class="line" lang="plaintext">#12 0x447292 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:323:6</span>
<span id="LC14" class="line" lang="plaintext">#13 0x44cf36 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:856:9</span>
<span id="LC15" class="line" lang="plaintext">#14 0x476442 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10</span>
<span id="LC16" class="line" lang="plaintext">#15 0x7f65d4b05b26 in __libc_start_main (/lib64/libc.so.6+0x25b26)</span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto">DEDUP_TOKEN: malloc--__gmp_default_allocate--__gmpz_realloc
Indirect leak of 384 byte(s) in 1 object(s) allocated from:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true" style="border-radius: 2px; margin: 0 0 8px; padding: 8px 12px; border: 1px solid #dbdbdb;"><code><span id="LC1" class="line" lang="plaintext">#0 0x52284d in malloc /src/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3</span>
<span id="LC2" class="line" lang="plaintext">#1 0x8ce708 in __gmp_default_allocate /src/gmp/memory.c:53:9</span>
<span id="LC3" class="line" lang="plaintext">#2 0x892088 in __gmpz_realloc /src/gmp/mpz/realloc.c:63:12</span>
<span id="LC4" class="line" lang="plaintext">#3 0x8929d8 in __gmpz_set /src/gmp/mpz/set.c:43:8</span>
<span id="LC5" class="line" lang="plaintext">#4 0x76b5f1 in wrap_nettle_pk_generate_keys /src/gnutls/lib/nettle/pk.c:2248:4</span>
<span id="LC6" class="line" lang="plaintext">#5 0x739439 in _gnutls_dh_common_print_server_kx /src/gnutls/lib/auth/dh_common.c:340:6</span>
<span id="LC7" class="line" lang="plaintext">#6 0x7bff94 in gen_dhe_server_kx /src/gnutls/lib/auth/dhe.c:115:6</span>
<span id="LC8" class="line" lang="plaintext">#7 0x59d6f6 in _gnutls_send_server_kx_message /src/gnutls/lib/kx.c:289:7</span>
<span id="LC9" class="line" lang="plaintext">#8 0x590450 in handshake_server /src/gnutls/lib/handshake.c:3450:8</span>
<span id="LC10" class="line" lang="plaintext">#9 0x58aa34 in gnutls_handshake /src/gnutls/lib/handshake.c:2773:9</span>
<span id="LC11" class="line" lang="plaintext">#10 0x555cc7 in LLVMFuzzerTestOneInput /src/gnutls/fuzz/gnutls_server_rawpk_fuzzer.c:90:9</span>
<span id="LC12" class="line" lang="plaintext">#11 0x45bb23 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:599:15</span>
<span id="LC13" class="line" lang="plaintext">#12 0x447292 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:323:6</span>
<span id="LC14" class="line" lang="plaintext">#13 0x44cf36 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:856:9</span>
<span id="LC15" class="line" lang="plaintext">#14 0x476442 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10</span>
<span id="LC16" class="line" lang="plaintext">#15 0x7f65d4b05b26 in __libc_start_main (/lib64/libc.so.6+0x25b26)</span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto">DEDUP_TOKEN: malloc--__gmp_default_allocate--__gmpz_realloc
Indirect leak of 384 byte(s) in 1 object(s) allocated from:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true" style="border-radius: 2px; margin: 0 0 8px; padding: 8px 12px; border: 1px solid #dbdbdb;"><code><span id="LC1" class="line" lang="plaintext">#0 0x52284d in malloc /src/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3</span>
<span id="LC2" class="line" lang="plaintext">#1 0x8ce708 in __gmp_default_allocate /src/gmp/memory.c:53:9</span>
<span id="LC3" class="line" lang="plaintext">#2 0x892088 in __gmpz_realloc /src/gmp/mpz/realloc.c:63:12</span>
<span id="LC4" class="line" lang="plaintext">#3 0x8929d8 in __gmpz_set /src/gmp/mpz/set.c:43:8</span>
<span id="LC5" class="line" lang="plaintext">#4 0x761216 in wrap_nettle_mpi_copy /src/gnutls/lib/nettle/mpi.c:193:2</span>
<span id="LC6" class="line" lang="plaintext">#5 0x77a005 in set_dh_pk_params /src/gnutls/lib/dh.c:58:53</span>
<span id="LC7" class="line" lang="plaintext">#6 0x7790c7 in _gnutls_figure_dh_params /src/gnutls/lib/dh.c:178:8</span>
<span id="LC8" class="line" lang="plaintext">#7 0x7bff56 in gen_dhe_server_kx /src/gnutls/lib/auth/dhe.c:107:6</span>
<span id="LC9" class="line" lang="plaintext">#8 0x59d6f6 in _gnutls_send_server_kx_message /src/gnutls/lib/kx.c:289:7</span>
<span id="LC10" class="line" lang="plaintext">#9 0x590450 in handshake_server /src/gnutls/lib/handshake.c:3450:8</span>
<span id="LC11" class="line" lang="plaintext">#10 0x58aa34 in gnutls_handshake /src/gnutls/lib/handshake.c:2773:9</span>
<span id="LC12" class="line" lang="plaintext">#11 0x555cc7 in LLVMFuzzerTestOneInput /src/gnutls/fuzz/gnutls_server_rawpk_fuzzer.c:90:9</span>
<span id="LC13" class="line" lang="plaintext">#12 0x45bb23 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:599:15</span>
<span id="LC14" class="line" lang="plaintext">#13 0x447292 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:323:6</span>
<span id="LC15" class="line" lang="plaintext">#14 0x44cf36 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:856:9</span>
<span id="LC16" class="line" lang="plaintext">#15 0x476442 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10</span>
<span id="LC17" class="line" lang="plaintext">#16 0x7f65d4b05b26 in __libc_start_main (/lib64/libc.so.6+0x25b26)</span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto">DEDUP_TOKEN: malloc--__gmp_default_allocate--__gmpz_realloc
Indirect leak of 8 byte(s) in 1 object(s) allocated from:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true" style="border-radius: 2px; margin: 0 0 8px; padding: 8px 12px; border: 1px solid #dbdbdb;"><code><span id="LC1" class="line" lang="plaintext">#0 0x52284d in malloc /src/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3</span>
<span id="LC2" class="line" lang="plaintext">#1 0x8ce708 in __gmp_default_allocate /src/gmp/memory.c:53:9</span>
<span id="LC3" class="line" lang="plaintext">#2 0x892088 in __gmpz_realloc /src/gmp/mpz/realloc.c:63:12</span>
<span id="LC4" class="line" lang="plaintext">#3 0x8929d8 in __gmpz_set /src/gmp/mpz/set.c:43:8</span>
<span id="LC5" class="line" lang="plaintext">#4 0x761216 in wrap_nettle_mpi_copy /src/gnutls/lib/nettle/mpi.c:193:2</span>
<span id="LC6" class="line" lang="plaintext">#5 0x779f5a in set_dh_pk_params /src/gnutls/lib/dh.c:47:52</span>
<span id="LC7" class="line" lang="plaintext">#6 0x7790c7 in _gnutls_figure_dh_params /src/gnutls/lib/dh.c:178:8</span>
<span id="LC8" class="line" lang="plaintext">#7 0x7bff56 in gen_dhe_server_kx /src/gnutls/lib/auth/dhe.c:107:6</span>
<span id="LC9" class="line" lang="plaintext">#8 0x59d6f6 in _gnutls_send_server_kx_message /src/gnutls/lib/kx.c:289:7</span>
<span id="LC10" class="line" lang="plaintext">#9 0x590450 in handshake_server /src/gnutls/lib/handshake.c:3450:8</span>
<span id="LC11" class="line" lang="plaintext">#10 0x58aa34 in gnutls_handshake /src/gnutls/lib/handshake.c:2773:9</span>
<span id="LC12" class="line" lang="plaintext">#11 0x555cc7 in LLVMFuzzerTestOneInput /src/gnutls/fuzz/gnutls_server_rawpk_fuzzer.c:90:9</span>
<span id="LC13" class="line" lang="plaintext">#12 0x45bb23 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp:599:15</span>
<span id="LC14" class="line" lang="plaintext">#13 0x447292 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:323:6</span>
<span id="LC15" class="line" lang="plaintext">#14 0x44cf36 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp:856:9</span>
<span id="LC16" class="line" lang="plaintext">#15 0x476442 in main /src/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp:20:10</span>
<span id="LC17" class="line" lang="plaintext">#16 0x7f65d4b05b26 in __libc_start_main (/lib64/libc.so.6+0x25b26)`</span></code></pre>
<copy-code></copy-code>
</div>
<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">3.6.14</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">openEuler</p>
<h2 dir="auto">
<a id="user-content-actual-results" class="anchor" href="#actual-results" aria-hidden="true"></a>Actual results:</h2>
<p dir="auto">Error occurred<a href="https://gitlab.com/gnutls/gnutls/uploads/f6d02efe56623be93296ae4971dc5a49/fusiontest-testcase-gnutls_server_rawpk_fuzzer-202111260001" data-canonical-src="/uploads/f6d02efe56623be93296ae4971dc5a49/fusiontest-testcase-gnutls_server_rawpk_fuzzer-202111260001" data-link="true" class="gfm">fusiontest-testcase-gnutls_server_rawpk_fuzzer-202111260001</a></p>
<h2 dir="auto">
<a id="user-content-expected-results" class="anchor" href="#expected-results" aria-hidden="true"></a>Expected results:</h2>
<p dir="auto">No Error</p>
</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/1328">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/297a147877dafa95e219d7e8cc903eb8/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/1328"}}</script>
</p>
</div>
</body>
</html>