wget/tests
Tim Rühsen 04ab356669 Fix crash when printing download rate
If the download rate is TB/s, a read buffer overflow happended
that either caused a crash or printed whatever string was pointed to.

* src/retr.c (retr_rate): Add missing array entrie for TB/s and Tb/s,
  (test_retr_rate): New test function.
* tests/unit-tests.c (all_tests): Run test 'test_retr_rate'.
* tests/unit-tests.h: Add prototype for test_retr_rate.

Reported-by: Wiebe Cazemier <wiebe@halfgaar.net>
2023-08-03 11:19:41 +02:00
..
certs Fix HTTPS Perl tests 2018-11-09 15:47:53 +01:00
FTPServer.pm Fix perl warnings in tests 2017-04-05 20:04:12 +02:00
FTPTest.pm Fix perl warnings in tests 2017-04-05 20:04:12 +02:00
HTTPServer.pm Fix perl warnings in tests 2017-04-05 20:04:12 +02:00
HTTPTest.pm Fix perl warnings in tests 2017-04-05 20:04:12 +02:00
Makefile.am * tests/Makefile.am: Remove './' from for portability (OpenBSD) 2023-08-03 10:39:56 +02:00
SSLServer.pm * tests/SSLServer.pm: Check for IO::Socket::SSL 2017-05-09 11:08:32 +02:00
SSLTest.pm Fix HTTPS Perl tests 2018-11-09 15:47:53 +01:00
Test-204.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test--httpsonly-r.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test--no-content-disposition-trivial.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test--no-content-disposition.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test--post-file.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test--spider-fail.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test--spider-r--no-content-disposition-trivial.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test--spider-r--no-content-disposition.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test--spider-r-HTTP-Content-Disposition.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test--spider-r.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test--spider.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test--start-pos--continue.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test--start-pos.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-auth-basic.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-auth-no-challenge-url.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-auth-no-challenge.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-auth-retcode.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-auth-with-content-disposition.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-c-full.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-c-partial.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-c-shorter.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-c.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-cookies-401.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-cookies.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-E-k-K.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-E-k.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-ftp--start-pos.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-ftp-bad-list.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-ftp-dir.px Fix double free in FTP Code 2021-03-02 12:03:14 +01:00
Test-ftp-iri-disabled.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-ftp-iri-fallback.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-ftp-iri-recursive.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-ftp-iri.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-ftp-list-Multinet.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-ftp-list-UNIX-hidden.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-ftp-list-Unknown-a.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-ftp-list-Unknown-hidden.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-ftp-list-Unknown-list-a-fails.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-ftp-list-Unknown.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-ftp-pasv-fail.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-ftp-pasv-not-supported.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-ftp-recursive.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-ftp.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-HTTP-Content-Disposition-1.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-HTTP-Content-Disposition-2.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-HTTP-Content-Disposition.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-https-badcerts.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-https-clientcert.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-https-crl.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-https-pfs.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-https-selfsigned.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-https-tlsv1.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-https-tlsv1x.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-https-weboftrust.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-i-ftp.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-i-http.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-idn-cmd-utf8.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-idn-cmd.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-idn-headers.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-idn-meta.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-idn-robots-utf8.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-idn-robots.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-iri-disabled.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-iri-forced-remote.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-iri-list.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-iri-percent.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-iri.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-k.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-meta-robots.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-N--no-content-disposition-trivial.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-N--no-content-disposition.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-N-current.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-N-HTTP-Content-Disposition.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-N-no-info.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-N-old.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-N-smaller.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-N.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-nonexisting-quiet.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-noop.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-np.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-O--no-content-disposition-trivial.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-O--no-content-disposition.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-O-HTTP-Content-Disposition.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-O-nc.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-O-nonexisting.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-O.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-proxied-https-auth-keepalive.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-proxied-https-auth.px Add --gen-suppressions=all to valgrind options 2020-02-21 22:42:22 +01:00
Test-proxy-auth-basic.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-restrict-ascii.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-Restrict-Lowercase.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-Restrict-Uppercase.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
Test-stdouterr.px Revert "Add . to perl path for all perl tests" 2019-05-30 12:06:01 +02:00
unit-tests.c Fix crash when printing download rate 2023-08-03 11:19:41 +02:00
unit-tests.h Fix crash when printing download rate 2023-08-03 11:19:41 +02:00
valgrind-suppressions * tests/valgrind-suppressions: Add rule for 'strcmp-sse2.S in libdl.so' 2023-02-18 17:25:56 +01:00
valgrind-suppressions-ssl Add valgrind suppressions 2020-02-21 22:43:01 +01:00
WgetFeature.pm Fix WgetFeature.pm to allow multiple required features 2017-05-09 11:16:30 +02:00
WgetTests.pm * tests/WgetTests.pm: Add --show-leak-kinds=all valgrind argument 2021-04-11 19:40:56 +02:00