curl / Mailing Lists / curl-users / Single Mail

curl-users

'make check' and Use of uninitialised value in Curl_rand_hex

From: Jeffrey Walton <noloader_at_gmail.com>
Date: Tue, 24 Jul 2018 12:02:02 -0400

Hi Everyone,

My apologies if this has been asked previously. Google is not what it
used to be and showed one relevant hit at
https://fossies.org/diffs/curl/7.57.0_vs_7.58.0/CHANGES-diff.html.

I'm running a 'make check' on the latest release tarball. I'm catching
a lot of Valgrind findings for use of uninitialised value in
Curl_rand_hex.

My question is, how should I interpret the result?

If the results are expected, then maybe a suppression file with an
entry for Curl_rand_hex would be a good idea?

Thanks in adavnce

=================

$ make check
...

test 0007...OK (7 out of 1192, remaining: 24:18)
test 0008...OK (8 out of 1192, remaining: 23:34)
test 0009... valgrind ERROR ==24850== Use of uninitialised value of size 8
==24850== at 0x4E7E2CA: Curl_rand_hex (in
/home/build/curl-7.61.0/lib/.libs/libcurl.so.4.5.0)
==24850== by 0x4E82393: curl_mime_init (in
/home/build/curl-7.61.0/lib/.libs/libcurl.so.4.5.0)
==24850== by 0x40601B: formparse (in /home/build/curl-7.61.0/src/.libs/curl)
==24850== by 0x407804: getparameter (in
/home/build/curl-7.61.0/src/.libs/curl)
==24850== by 0x40AA5A: parse_args (in /home/build/curl-7.61.0/src/.libs/curl)
==24850== by 0x40FD97: operate (in /home/build/curl-7.61.0/src/.libs/curl)
==24850== by 0x402857: main (in /home/build/curl-7.61.0/src/.libs/curl)
==24850==
==24850== Use of uninitialised value of size 8
==24850== at 0x4E7E2D7: Curl_rand_hex (in
/home/build/curl-7.61.0/lib/.libs/libcurl.so.4.5.0)
==24850== by 0x4E82393: curl_mime_init (in
/home/build/curl-7.61.0/lib/.libs/libcurl.so.4.5.0)
==24850== by 0x40601B: formparse (in /home/build/curl-7.61.0/src/.libs/curl)
==24850== by 0x407804: getparameter (in
/home/build/curl-7.61.0/src/.libs/curl)
==24850== by 0x40AA5A: parse_args (in /home/build/curl-7.61.0/src/.libs/curl)
==24850== by 0x40FD97: operate (in /home/build/curl-7.61.0/src/.libs/curl)
==24850== by 0x402857: main (in /home/build/curl-7.61.0/src/.libs/curl)
==24850==
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-07-24