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
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