Darshit Shah
f973f4857a
* Update copyright year to 2024
2024-02-19 18:33:43 +05:30
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
Tim Rühsen
834d090bf6
Add new unit test test_uri_merge()
...
* src/url.c: New test function test_uri_merge().
* tests/unit-tests.c (tests/unit-tests.c): Call test_uri_merge().
* tests/unit-tests.h (tests/unit-tests.h): Declare test_uri_merge().
2023-07-01 18:14:00 +02:00
Tim Rühsen
4223996930
Update copyright years
2023-02-17 13:46:58 +01:00
Darshit Shah
be936bda56
* Update Copyright years
2022-02-26 15:49:52 +01:00
Tim Rühsen
74a9d9e7c4
* src/netrc.c (test_parse_netrc): New unit test function
2022-02-13 17:28:02 +01:00
Darshit Shah
5a7f2f7e87
Run make update-copyright
2021-01-01 12:31:01 +01:00
Darshit Shah
221f1ba3ef
Update copyright year to 2020
2020-01-10 12:56:08 +01:00
Darshit Shah
8b975e83d3
Update copyright statements
2019-02-10 11:50:17 +01:00
Tim Rühsen
de54c970b2
Move unit-test code to tests/
...
* src/Makefile.am: Remove test.c and test.h
* src/test.c: Rename to tests/unit-tests.c
* src/test.h: Rename to tests/unit-tests.h
* tests/Makefile.am: Add unit-tests.c and unit-tests.h
* src/hsts.c: Amend #include
* src/http.c: Likewise
* src/init.c: Likewise
* src/metalink.c: Likewise
* src/res.c: Likewise
* src/url.c: Likewise
* src/utils.c: Likewise
2018-04-05 15:06:47 +02:00