summaryrefslogtreecommitdiff
path: root/other
AgeCommit message (Collapse)Author
2020-05-06cleanup: Make pylint and mypy happy with bootstrap_node_info.py.iphydf
2020-05-05Add autotools build to localbuild docker images.iphydf
2020-05-05refactor: Remove multi-declarators entirely.iphydf
We no longer allow `int a, b;`. In the few cases where we used it, we instead better * limit the scope of the identifier (e.g. in a for-init-decl) * split the line and have 2 separate declarators, because the identifiers designate different types of things (e.g. friend numbers and group numbers).
2020-05-05refactor: Disallow multiple initialised declarators per decl.iphydf
We no longer allow: ```c int a = 0, b = 0; int a[3], b[3]; int a, *b; ``` But we do still allow (for now): ```c int a, b; ```
2020-05-05Use bash arrays instead of strings for static analysis scripts.iphydf
These are more robust wrt. spaces in names.
2020-05-04Add logging to TCP and onion client.iphydf
2020-05-03Add a script to run Travis CI locally.iphydf
This isn't quite Travis, but close enough for local testing.
2020-05-03Fix a bug in savedata loading when malloc fails.iphydf
Also added a bunch of asserts to tests where they don't check allocs.
2020-05-02Add a check that we don't have any unused functions.iphydf
This check puts all of our code in a C++ anonymous namespace, which is effectively making all functions `static`. This allows the compiler to determine that a function is unused, so we can delete it.
2020-05-02Fix errors on error paths found by oomer.iphydf
* 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-01Release 0.2.12Robin Linden
2020-04-26Rework the toxchat/bootstrap-node Docker image.iphydf
* Use fully static build for the bootstrap daemon. * Store a sha256sum of the binary in the repo. * Updated documentation for it. * Add support for fully static build in cmake. * Enable the docker build on every PR, so we catch changes to the checksum. I realise this is adding toil, but having the checksum is valuable for security of released binaries.
2020-04-24[ImgBot] Optimize imagesImgBotApp
*Total -- 23.11kb -> 12.21kb (47.19%) /other/tox.png -- 17.50kb -> 6.99kb (60.05%) /other/tox-warning.png -- 5.61kb -> 5.21kb (7.04%) Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2020-04-20Enable TCP relay test in Bazel and autotools build.iphydf
This test was fixed by @robinlinden, but not enabled in all builds.
2020-04-08Install ci-tools and get tokstyle via the script it provides.iphydf
2020-04-04Migrate format-source script to new apidsl web app.iphydf
This one is unfortunately a little more complicated to use. I may add a simpler API later, but for now, it's JSON-based (because I couldn't get binary data to work without it getting mangled somewhere along the way - JSON is at least text-transport-safe).
2020-04-04Add minimal save generatorMaxim Biro
2020-03-14Use spdx license identifier instead of GPL blurb.iphydf
2020-03-12Use rules_cc instead of native cc_library rules.iphydf
2020-03-03Update tox-bootstrapd's dockerfile to use Debian BusterMaxim Biro
2020-03-03Fix tox-bootstrapd's READMEMaxim Biro
2019-11-17bump libsodium version in appveyor.yml and windows Dockerfilezugz (tox)
2019-01-03Use new WineHQ Debian package repository keyMaxim Biro
2019-01-03Allow unauthenticated wine packages in the Windows build.iphydf
2018-11-04Increase NOFILE limit for tox-bootstrapdMaxim Biro
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-10-17Use cmake to build toxcore in tox-boostrapd's DockerfileMaxim Biro
2018-10-17tox-bootstrapd's Dockerfile shouldn't use master branchMaxim Biro
2018-10-16Don't warn about macro expansion in run-clangMaxim Biro
2018-10-16Make tox-bootstrapd free memory on SIGINT and SIGTERMMaxim Biro
Useful for using memory analyzing tools.
2018-10-16Use `bool` for IPv6 flag in test programs and `DHT_bootstrap`.iphydf
2018-10-08Remove Alpine Linux bootstrap daemon dockerfile.iphydf
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-08Add LAN_discovery to the list of apidsl-generated files.iphydf
So it gets regenerated when the .api.h file changes.
2018-10-07Make sure logger levels stay in sync across filesMaxim Biro
2018-09-19Fix typosyangfl
2018-09-14Standardise header guards.iphydf
Using the full path including the repo name.
2018-09-08Add tool to find directly recursive calls in toxcore.iphydf
We should avoid recursion, as it makes reasoning about stack growth harder. This tool shows (currently) 4 (non-tail) recursive functions, at least 2 of which are easy to fix.
2018-08-30Use our own logging facility to log toxcore's logsMaxim Biro
2018-08-30Feature bootstrap trace/debug log outputcotox
Don't know why codes with macro dosen't work. As it's only a few expensive, just code it without macro for now. \#if (MIN_LOGGER_LEVEL == LOG_TRACE) || (MIN_LOGGER_LEVEL == LOG_DEBUG) fprintf(stderr, "[%s] %s:%d(%s) %s\n", strlevel, file, line, func, message); \#endif
2018-08-26Format crypto_core.c.iphydf
Changes: * 100 columns maximum (not strict, can be a bit more sometimes). * No space after cast.
2018-08-26Update copyright to 2018.iphydf
2018-08-26Add some tests for `ping_array`.iphydf
No timeout test here yet, because we don't yet have the ability to manipulate time at will, so we would have to actually sleep.
2018-08-19Avoid redefining macros from different files.iphydf
2018-08-19Fix const cast in save-generator.iphydf
2018-08-19Add save file generator, save compatibility test, and generate a save fileendoffile78
2018-08-16Use per-instance `Mono_Time` for Messenger and onion.iphydf
2018-08-16Reduce the number of times `unix_time_update` is called.iphydf
Reduced by, e.g.: * `file_transfer_test`: 33% of the `clock_gettime` calls. * `tox_many_test`: 53% of the `clock_gettime` calls. Other tests will see similar improvements. Real world applications will be closer to 40-50% improvement, since tox_many_test has 100 nodes, while file_transfer_test has 2 nodes.
2018-08-12Fix a few warnings from clang.iphydf
Also remove the use of a VLA in a context where there can be unbounded memory allocations.
2018-08-04Make a separate `struct Tox` containing the Messenger.iphydf
This allows Tox to contain additional data on top of Messenger, making Messenger not necessarily the most top-level object. E.g. groups are built on Messenger and currently awkwardly void-pointered into it to pretend there is no cyclic dependency.
2018-07-22Run Clang global static analysis on Travis.iphydf
This uses a single .cc file containing almost all the code in the repository to perform whole program analysis.
2018-07-21Avoid implementations in .h files or #including .c files.iphydf
Also, avoid the need for putting `_XOPEN_SOURCE` in every test file.