toxcore/auto_tests
iphydf 2570ddcb17
Fix errors on error paths found by oomer.
* Use-after-free because we free network before dht in one case.
* Various unchecked allocs in tests (not so important).
* We used to not check whether ping arrays were actually allocated in DHT.
* `ping_kill` and `ping_array_kill` used to crash when passing NULL.

Also:
* Added an assert in all public API functions to ensure tox isn't NULL.
  The error message you get from that is a bit nicer than "Segmentation
  fault" when clients (or our tests) do things wrong.
* Decreased the sleep time in iterate_all_wait from 20ms to 5ms.
  Everything seems to still work with 5ms, and this greatly decreases
  the amount of time spent per test run, making oomer run much faster.
2020-05-02 21:47:08 +01:00
..
data
bootstrap_test.c
BUILD.bazel
check_compat.h
conference_av_test.c
conference_double_invite_test.c Add "member" invite response 2020-03-18 00:00:00 +00:00
conference_invite_merge_test.c
conference_peer_nick_test.c
conference_simple_test.c Consistently use camel case enum names. 2018-10-09 17:33:37 +00:00
conference_test.c
conference_two_test.c
crypto_test.c
dht_test.c
encryptsave_test.c
file_saving_test.c
file_transfer_test.c
friend_connection_test.c
friend_request_test.c
invalid_tcp_proxy_test.c
invalid_udp_proxy_test.c
lan_discovery_test.c Use do-while instead of while in tests. 2018-08-25 15:25:33 +00:00
lossless_packet_test.c
lossy_packet_test.c
Makefile.inc
messenger_test.c
network_test.c Avoid use of IPv6 in tests if not supported (e.g. on Travis). 2018-10-06 21:27:02 +00:00
onion_test.c
overflow_recvq_test.c Consistently use camel case enum names. 2018-10-09 17:33:37 +00:00
overflow_sendq_test.c
reconnect_test.c Add mechanism for recovering from disconnections in conferences 2018-09-05 20:56:26 +02:00
run_auto_test.h Fix errors on error paths found by oomer. 2020-05-02 21:47:08 +01:00
save_compatibility_test.c
save_friend_test.c
save_load_test.c
send_message_test.c
set_name_test.c
set_status_message_test.c
skeleton_test.c
tcp_relay_test.c
TCP_test.c
tox_many_tcp_test.c
tox_many_test.c Consistently use camel case enum names. 2018-10-09 17:33:37 +00:00
tox_one_test.c Fix errors on error paths found by oomer. 2020-05-02 21:47:08 +01:00
tox_strncasecmp_test.c Avoid implementations in .h files or #including .c files. 2018-07-21 20:44:26 +00:00
toxav_basic_test.c use -1 rather than ~0 in unsigned integer types 2020-03-14 00:00:02 +00:00
toxav_many_test.c
typing_test.c
version_test.c