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
Robin Lindén
3f35a84968
Release 0.2.8
2018-10-07 23:21:24 +02:00
Maxim Biro
56432a44c6
Make sure logger levels stay in sync across files
2018-10-07 15:16:00 -04:00
Maxim Biro
f5afc52655
Default to not defining MIN_LOGGER_LEVEL in CMake
...
That way CMake's behavior matches what autotools does -- letting
toxcore/logger.h handle the default case.
2018-10-07 15:15:58 -04:00
Maxim Biro
11e1f63f54
Fix logger level defaulting to TRACE in CMake
2018-10-07 15:15:44 -04:00
zugz (tox)
5beb00c93d
Fix memleak in tcp server by wiping priority queues on deletion
2018-10-07 20:13:51 +02:00
iphydf
b2b96b1aa1
Avoid use of IPv6 in tests if not supported (e.g. on Travis).
2018-10-06 21:27:02 +00:00
irungentoo
bf69b54f64
Fix memory leak when closing TCP connection.
...
Thanks to: https://github.com/TokTok/c-toxcore/pull/1216
2018-10-03 08:44:02 -04:00
iphydf
c7365b14f3
Remove a function-like macro and replace it with a function.
...
No use making this a macro. LTO will inline this anyway, if we care about
performance. Generally, we avoid function-like macros that can be functions.
2018-09-26 12:36:06 +00:00
iphydf
a94d032586
Use new @pthread
library from Bazel for Windows compat.
...
See https://github.com/TokTok/toktok-stack/pull/38 .
2018-09-26 00:01:15 +00:00
iphydf
4f266f913d
Use a working DHT node for bootstrap tests.
...
A lot of bootstrap nodes are down :(.
2018-09-25 21:19:07 +00:00
iphydf
bfd288c196
Revert "Improve cmake build for MSVC."
...
This reverts commit f87f8719d0
.
2018-09-24 22:25:49 +00:00
zugz (tox)
d5d6e3f60f
Combine last_reported_announced with last_seen in Onion_Friend
...
This resets friend search rate in two circumstances where it should be
reset:
* When the friend gets a dhtpk packet to us;
* When a friend connection to the friend goes down.
2018-09-25 00:08:08 +02:00
iphydf
b694dbc223
Add Cirrus CI configuration.
...
This CI can run Bazel tests, because it supports IPv6. This is nice,
because now we can run IPv6 tests on every PR.
2018-09-24 22:00:17 +00:00
iphydf
8bb5be3525
Run tests on Appveyor (Windows native build).
...
We ignore the errors for now.
2018-09-23 00:17:06 +00:00
iphydf
9c7c924e3c
Run UBSAN (undefined behaviour sanitizer) on Circle CI.
...
This runs in the same build as asan, so "asan" now stands for both asan
and ubsan.
2018-09-22 12:27:58 +00:00
Mick Sayson
f87f8719d0
Improve cmake build for MSVC.
2018-09-22 11:14:45 +00:00
Mick Sayson
dc0b2e7919
Fix using uninitialized mutex on call end.
2018-09-21 20:44:24 +00:00
zugz (tox)
e43b2eadc0
Send rejoin packets on conference disconnection
...
We were mistakenly not making a rejoin attempt on freezing connections
due to all closest connections going down. This fixes that, and tweaks
the test. I've still only done tens rather than hundreds of tests, but
I'm fairly confident that the conference test now consistently passes.
2018-09-20 22:30:28 +02:00