summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-03-14Fix up comments a bit to start being more uniform.iphydf
Tokstyle (check-cimple) will start enforcing comment formats at some point. It will not support arbitrary stuff in comments, and will parse them. The result can then be semantically analysed.
2020-03-14Use spdx license identifier instead of GPL blurb.iphydf
2020-03-14use -1 rather than ~0 in unsigned integer typeszugz (tox)
Using ~0 involves a bitwise operation on int, so depends on the internal representation of signed integers.
2020-03-12Use rules_cc instead of native cc_library rules.iphydf
2020-03-11Add a mutex lock/unlock inside every public API function.iphydf
2020-03-10Enable FreeBSD jobs on Travis-CIMaxim Biro
2020-03-10Update and fix FreeBSD setup on Travis-CIMaxim Biro
- Bump FreeBSD to 12.1. - Simplify stage1 logic. - Re-try downloading the image from a different mirror if one fails. - Use the `expect` utility instead of dealing with screen's log file. - Re-run failed toxcore test one more time and in sequence.
2020-03-08Pass packet ID to custom packet handlers.iphydf
We don't expose this to the user code, yet, because it would break the API, but this is useful for future internal code.
2020-03-06Use `net_pack` instead of casting bytes to ints.iphydf
The current code violates the C standard and causes crashes on strict alignment architectures.
2020-03-05Use ninja build system for the cmake-linux build.iphydf
2020-03-05Use net_pack/unpack instead of host_to_net.iphydf
The latter is doing pretty much the same thing but in a confusing way (it doesn't change the type of the variable, but does change the semantics).
2020-03-05Disable FreeBSD travis build until it is fixed.iphydf
2020-03-03Update tox-bootstrapd's dockerfile to use Debian BusterMaxim Biro
2020-03-03Fix tox-bootstrapd's READMEMaxim Biro
2020-03-02Remove testing/av_test.c.iphydf
It's a maintenance burden. Nobody uses this. It depends on an ancient version of opencv that less and less systems actually have.
2020-03-02bump to astyle-3.1 in travis buildzugz (tox)
2020-03-02Add "cimple_test" to the bazel build.iphydf
2020-03-02Upgrade bazel to 2.1.1.iphydf
Removed av_test, because it depends on an ancient opencv that starts to really not exist on modern systems anymore.
2020-01-22handle message_number wraparoundzugz (tox)
2020-01-22workaround for message number saving (fixes #961)zugz (tox)
Put a future message number into the save file. Peers require the message numbers of messages we send to increase monotonically. If we save the current message number, then send further messages, then quit without saving (e.g. due to a crash), and then resume from the old save data, then monotonicity will fail. This commit works around this problem by introducing an offset when the current message number, so that even in the above circumstance, as long as fewer messages than the offset were sent between saving and reloading, the sent message numbers will increase monotonically. The choice of offset is a balance between wanting it to be large enough that there is room for plenty of messages to be sent in the above scenario, and wanting to avoid the following potential problem: if we repeatedly save and reload without sending any further messages, then the message number may increase so far that peers will interpret an eventual message as being old. This is not conceivably a practical issue for the 32bit lossless message numbers, but is a concern for the 16bit lossy message numbers.
2020-01-22refactorzugz (tox)
2020-01-02fix ToxAV threading documentationsudden6
ToxAV is not thread-safe at the moment, remove that claim from the header file.
2020-01-02synchronize call control actions to tox_iteratesudden6
2019-12-25don't wait for connection when killing Toxsudden6
When tox_kill is called no other thread should be running anymore so this locking is not needed there.
2019-12-23fix invalid use of mutexsudden6
- Moving a pthread_mutex in memory (e.g. via realloc()) is undefined behavior. - add a state for allocated but not yet used crypto connections - change crypto_connection_status signature
2019-11-21fix log message creating data racesudden6
2019-11-21fix missing mutexsudden6
2019-11-21fix ToxAV mutex released to earlysudden6
2019-11-17Add VScode folder to .gitignorecrypto-universe
2019-11-17bump libsodium version in appveyor.yml and windows Dockerfilezugz (tox)
2019-11-17Fix miscellaneous small problems with groups:zugz (tox)
* unset global status callback in kill_groupchats * avoid dangling friend connections * fix num_introducer_connections leak * stop trying to keep connection alive on freeze * avoid relaying lossless messages back to sender where possible * avoid sending gratuitous online packets
2019-11-17Allow Bazel to rerun tests marked as flakyRobin Linden
2019-11-02Update tests to use a working bootstrap nodeRobin Linden
2019-09-18Fix pthread_mutex_destroy getting too many argumentsRobin Lindén
2019-09-09don't update the overflow state in current_time_monotonicsudden6
This could make mono_time loose overflows on Windows.
2019-09-06fix concurrency issues in mono_timesudden6
Since mono_time is accessed from the main thread as well as the toxav thread it is needed to properly lock time updates.
2019-08-04fix overflow in peer nick lensudden6
2019-08-04fix missing group title length checksudden6
This fixes a buffer overflow when a malformed *.tox save file is loaded.
2019-07-21Force IPv4 for cirrus-ci testsRobin Lindén
2019-05-30Release 0.2.10Robin Lindén
2019-05-19add configurable limit on number of stored frozen peerszugz (tox)
2019-05-01Do not send the same packet to the same node twice.Evgeny Kurnevsky
2019-05-01add undef guard in tox_many_tcp_testsudden6
This fixes an redefinition error when creating amalgamation.cc during static analysis
2019-04-01Disable failing TCP server testzugz (tox)
The test's intermittent failure may well be exposing a real bug in the TCP relay and/or onion systems, but we can't find the bug, and keeping the test is disrupting our CI.
2019-03-24Fix bazel build version at 0.22.0 for CI.iphydf
To make this reproducible. With floating versions (always latest), this can break any time a new bazel version is released.
2019-02-10put toxav.h stuff in toxav.api.hzugz (tox)
2019-02-10explain enabling in API commentzugz (tox)
2019-02-10add API function to test whether av is enabledzugz (tox)
2019-02-10Expose api functions for enabling and disabling AV in AV groupszugz (tox)
A group loaded from a savefile starts with AV disabled.
2019-01-21Specify that buffer size for tox_conference_peer_get_name is given by $sizezugz (tox)