toxcore/other
iphydf 864b4aa01f
chore: Be even more explicit about integer range bounds.
For coverity, which continues to think we're overrunning buffers when
at this point it's easy to prove we're not. Here would be the corrected
coverity finding:

6. Condition packet_length <= 105 /* 1 + 32 * 2 + 24 + 16 */, taking false branch.
7. Condition packet_length > 1024, taking false branch.

Now packet_length must be > 105 and <= 1024.

12. Condition len1 == packet_length - (89 /* 1 + 32 * 2 + 24 */) - 16, taking true branch.

len1 must be > 0 (105 - 89 - 16) and <= 919 (1024 - 89 - 16).

14. decr: Decrementing len1. The value of len1 is now between 0 and 919 (inclusive).

This is where coverity goes wrong: it thinks len1 could be up to 2147483629.

15. buffer access should be OK. Coverity thinks it's not.
2022-03-08 20:46:46 +00:00
..
analysis cleanup: Remove redundant Messenger and DHT tests. 2022-03-03 21:17:03 +00:00
astyle fix: Fix some uninitialised memory errors found by valgrind and msan. 2022-01-13 20:15:21 +00:00
bootstrap_daemon chore: Be even more explicit about integer range bounds. 2022-03-08 20:46:46 +00:00
docker docs: Clean up doxygen comments to be more doxygen-like. 2022-03-05 22:30:48 +00:00
emscripten cleanup: Remove redundant Messenger and DHT tests. 2022-03-03 21:17:03 +00:00
fun cleanup: Enable most cppcheck warnings as errors. 2022-02-21 17:17:36 +00:00
pkgconfig update rpm spec and use variables in cmake instead of hardcoded paths (#624) 2018-01-15 14:23:33 +03:00
proxy test: Add mallocfail and proxy test to our coverage runs. 2022-02-25 01:55:28 +00:00
rpm Use the markdown GPLv3 license in the c-toxcore repo. 2018-02-08 16:08:09 +00:00
bootstrap_node_packets.c Make functions take const pointer to IP_Port wherever possible 2022-02-03 10:54:48 -05:00
bootstrap_node_packets.h cleanup: Remove uses of strcpy and sprintf. 2022-01-17 18:25:40 +00:00
BUILD.bazel cleanup: Split util.c out of the network library. 2022-03-04 10:33:11 +00:00
DHT_bootstrap.c fix: Allow port range in DHT_bootstrap.c. 2022-03-08 12:16:08 +00:00
DHTnodes Link changes. 2015-07-07 22:57:11 -04:00
make_single_file feat: Add async event handling (callbacks) code. 2022-02-06 17:28:28 +00:00
Makefile.inc Avoid implementations in .h files or #including .c files. 2018-07-21 20:44:26 +00:00
osx_build_script_toxcore.sh Move OS X install script 2015-02-03 12:48:15 -05:00
print-version chore: Add bootstrap daemon docker image build. 2021-12-23 15:54:24 +00:00
tox-warning.png [ImgBot] Optimize images 2020-04-24 21:55:23 +00:00
tox.png [ImgBot] Optimize images 2020-04-24 21:55:23 +00:00
version-sync Bump toxcore version to 0.2.0. 2018-01-08 19:36:00 +00:00
windows_build_script_toxcore.sh Update deps used in Windows build scripts 2021-02-25 13:59:18 +03:00