Commit Graph

4806 Commits

Author SHA1 Message Date
Evgeny Kurnevsky
d26b11d0c2
Do not send the same packet to the same node twice. 2019-05-01 16:40:04 +02:00
sudden6
b3100c977c
add undef guard in tox_many_tcp_test
This fixes an redefinition error when creating amalgamation.cc during
static analysis
2019-05-01 14:24:46 +02:00
zugz (tox)
efff822aef
Disable failing TCP server test
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-04-01 19:43:32 +02:00
iphydf
a49cbe582d
Fix bazel build version at 0.22.0 for CI.
To make this reproducible. With floating versions (always latest), this
can break any time a new bazel version is released.
2019-03-24 21:59:39 +00:00
zugz (tox)
d14989f6df
put toxav.h stuff in toxav.api.h 2019-02-10 18:17:59 +01:00
zugz (tox)
695fa4373a
explain enabling in API comment 2019-02-10 00:00:00 +00:00
zugz (tox)
959f468eac
add API function to test whether av is enabled 2019-02-10 00:00:00 +00:00
zugz (tox)
49e2406ffa
Expose api functions for enabling and disabling AV in AV groups
A group loaded from a savefile starts with AV disabled.
2019-02-10 00:00:00 +00:00
zugz (tox)
0aad180d1e
Specify that buffer size for tox_conference_peer_get_name is given by $size 2019-01-21 22:17:49 +01:00
Robin Lindén
98b754e1f2
Release 0.2.9 2019-01-12 23:35:54 +01:00
zugz (tox)
a4bca35a1a
Add some const qualifiers
(Implementing suggestions of sudden6)
2019-01-12 22:38:51 +01:00
iphydf
91ff39599d
Implement all min/max functions for (un)signed int types.
Also, use them in the `onion_client` module.
2019-01-12 13:12:39 +00:00
iphydf
3dd31b1fd0
Fix misaligned 4-byte access in trace logging.
This code is undefined behaviour as is, and breaks on various platforms
requiring strict alignment (many microcontrollers).
2019-01-10 19:37:28 +00:00
zugz (tox)
86935beb2f
Avoid sending group messages to a peer before we have its group number 2019-01-07 01:11:12 +01:00
iphydf
6bc12232ac
Use (probably?) correct path to test log to cat on error. 2019-01-06 21:03:16 +00:00
zugz (tox)
e5561ad2b0
Improve handling of peers entering and leaving conferences
* send freeze packet on quit
* delete existing peers with same real_pk on adding a peer
* record actual number of conference peers saved
2019-01-06 19:37:33 +00:00
iphydf
e08f631547
Enable auto tests under STRICT_ABI if static libs are available.
STRICT_ABI only breaks linkage if static libraries are not available,
because then we try to link against shared libraries with hidden symbols.
2019-01-06 19:28:40 +00:00
iphydf
0f8b5c8255
Display build log for autotools build on failure.
We can't see the failure messages now, so something like "aborted", which
probably means assertion failure, is not very useful right now.

E.g. https://travis-ci.org/TokTok/c-toxcore/jobs/476028600#L1220
2019-01-06 17:25:14 +00:00
iphydf
765fd8a38a
Merge remote-tracking branch 'irungentoo/master' into merge-iru 2019-01-06 16:34:17 +00:00
iphydf
76b4ac4a71
Add MIN_LOGGER_LEVEL to the Circle CI builds.
This was changed a while back, and TRACE is no longer valid.
2019-01-06 16:13:31 +00:00
zugz (tox)
a122ee9e01
Expose offline conference peers in API 2019-01-05 15:01:29 +00:00
Maxim Biro
ebf3a82de8
Use new WineHQ Debian package repository key 2019-01-03 22:02:22 -05:00
zugz (tox)
1ddc922750
Define tox_conference_id_size and tox_conference_uid_size
Closes #1264
2019-01-03 14:29:20 +00:00
Evgeny Kurnevsky
e5320579a9
Fix indices calculation for congestion control. 2019-01-03 11:13:27 +00:00
zoff99
78bc9e7403
Added test and patch for VLA stack overflow vuln.
Also added and used the new crypto_malloc and crypto_free.

The latter also zeroes out the memory safely. The former only exists for
symmetry (static analysis can detect asymmetric usages).
2019-01-03 11:13:27 +00:00
iphydf
72ef08597e
Allow unauthenticated wine packages in the Windows build. 2019-01-03 10:49:37 +00:00
zugz (tox)
0f8f82a3cf
Add cmake option for building additional tests
Closes #1262
2018-12-11 21:49:34 +01:00
zugz (tox)
9770880e97
Implement conferences saving
* add global friend_connection status callback, used for group rejoining
* stop leaving groups on killing tox
2018-11-29 21:52:23 +01:00
zugz (tox)
caca350f43
Avoid format truncation in save compatibility test
(without this, gcc-8.2.0 issues a warning)
2018-11-23 18:09:45 +01:00
zugz (tox)
0bf90df5e1
Return TOX_ERR_CONFERENCE_SEND_MESSAGE_NO_CONNECTION if we are not connected to any peers 2018-11-23 17:53:50 +01:00
iphydf
60cd08e774
Upgrade bazel to 0.19.0 to fix the bazel build. 2018-11-22 21:51:40 +00:00
Maxim Biro
d89f83f8b5
Build tox-bootstrapd on FreeBSD Travis-CI 2018-11-04 20:10:20 -05:00
Maxim Biro
5530e41742
Increase NOFILE limit for tox-bootstrapd
tox-bootstrapd can use around 600 TCP sockets during TCP server's normal
functioning. Many systems default to having a soft limit of 1024 open file
descriptors, which we are close to reaching, so it was suggested we bump that
limit to a higher number. iphy suggested increasing it to 32768.
2018-11-04 20:10:09 -05:00
zugz (tox)
b56166f5a6
Add some hopefully helpful documentation to the functions in mono_time.h
(I found I couldn't remember whether get_mono_time returned unix time or
not, and had to source-dive to find out. This should make that
unnecessary next time!)
2018-10-31 19:34:52 +01:00
NamsooCho
15cc8050d2
Change method of PK production for fake friend in DHT 2018-10-24 13:05:32 +02:00
zugz (tox)
744dc2f5da
Make saving and loading the responsibility of Tox rather than Messenger 2018-10-20 11:03:10 +02:00
iphydf
aa5c782880
Add LOGGER_ASSERT for checking fatal error conditions.
These are not compiled out under `NDEBUG` and should be provably correct.
2018-10-19 18:08:46 +00:00
iphydf
1eaa55d2d4
Include CTest in CMakeLists.txt to get valgrind support.
We can now run `ctest --output-on-failure -D ExperimentalMemCheck -j 50`
to run valgrind on all tests.
2018-10-17 19:25:33 +00:00
Maxim Biro
b6dde3c76f
Use cmake to build toxcore in tox-boostrapd's Dockerfile 2018-10-17 14:45:44 -04:00
Maxim Biro
9b98ac1342
tox-bootstrapd's Dockerfile shouldn't use master branch 2018-10-17 14:45:36 -04:00
Maxim Biro
f45bf686ae
Don't warn about macro expansion in run-clang 2018-10-16 21:35:44 -04:00
Maxim Biro
1cbc9609a7
Make tox-bootstrapd free memory on SIGINT and SIGTERM
Useful for using memory analyzing tools.
2018-10-16 21:35:27 -04:00
iphydf
700accb3c7
Use bool for IPv6 flag in test programs and DHT_bootstrap. 2018-10-16 22:11:53 +00:00
Leonid Bobrov
ed9beef61c
Support DragonFlyBSD and prune unused variables. 2018-10-16 22:01:00 +00:00
zugz (tox)
4dd86f1f29
ensure save data unchanged after save and load 2018-10-11 00:21:39 +02:00
iphydf
605dfe882c
Consistently use camel case enum names.
Including in tests and implementation files.
2018-10-09 17:33:37 +00:00
iphydf
77e025fae4
Remove Alpine Linux bootstrap daemon dockerfile.
We can add it back when there is a test for it. For now, we don't know
whether it works and don't have tests to make sure it keeps working.
2018-10-08 23:00:35 +00:00
iphydf
15d64221f1
Add LAN_discovery to the list of apidsl-generated files.
So it gets regenerated when the .api.h file changes.
2018-10-08 22:38:26 +00:00
iphydf
3e58f3cd4d
Improve Windows compatibility of toxav code.
- unistd.h doesn't exist on MSVC.
- `vpx_codec_iface_t` is already `const`, so adding `const` qualifiers is
  redundant and causes warnings on MSVC.
2018-10-08 22:22:58 +00:00
chrono
17a7bf3fd2
Add AUTOTEST Option to CMakeLists.txt 2018-10-07 22:09:54 +00:00