Commit Graph

6679 Commits

Author SHA1 Message Date
Dastan-glitch
44602ff596 event_graph: added some info about methods 2023-08-25 02:58:43 +03:00
Dastan-glitch
7f2fd9da43 bin/tau: add necessery async trait 2023-08-25 02:22:17 +03:00
Dastan-glitch
b4f5851969 bin/darkirc: add necessery async trait 2023-08-25 02:21:40 +03:00
y
f6d1915556 zkas: fix index out of bounds panic
The decode() function panics when the input length is less than 10 bytes
in size due to direct magic-number indexing on the vector elements. This
check returns an error when the input is too small.
2023-08-24 18:38:03 +00:00
y
5ac92e3093 fuzz: improve readme and corpora wording 2023-08-24 18:37:46 +00:00
y
7c1cd791f2 Add out-of-memory crash to corpora
This input caused an out-of-memory bug. I haven't figured out why yet
but it's good to keep this in the corpus for future testing.

Something interesting: the fuzzer brute-forced the MAGIC BYTES for the
binary on its own! This file is a good starting point for future fuzzing
because it contains the magic bytes: subsequent runs can start from here
instead of needing to "find" the magic bytes via brute forcing every
time
2023-08-24 18:37:46 +00:00
y
bc16b6c475 Add instructions for building the fuzzing corpus
- Inform devs how to build an organized and useful corpora based on the
results of fuzz testing.
- Modify .gitignore to allow corpus/ tracking. Note: files in corpus/
  should not be blindly committed but selectively added based on
  usefulness
- Add emptyfile to zkas-decoder corpus because it caused a panic
2023-08-24 18:37:46 +00:00
y
382205ad81 Add fuzzer for ZkBinary::decode() 2023-08-24 18:37:46 +00:00
y
a12510e6e1 bot: muskify twitter references (untested) 2023-08-24 18:36:32 +00:00
y
9ff94cde44 doc: add fuzz instructions to Contributing 2023-08-24 18:36:19 +00:00
lunar-mining
cd9cb7b6de dnetview: remove dnetview from /bin and Cargo.toml
we are working on a rewrite in python and this current version is broken
on master and unmaintained.
2023-08-24 18:35:33 +02:00
lunar-mining
a378f9a761 doc: remove dchat from summary
temporarily remove dchat from the visibly accessible docs as it needs to
be ported over to the new network code. dnetview usage will also change
with the new release, so we are just disabling the tutorial for now.
2023-08-24 18:34:37 +02:00
x
1575d21f6c doc: add missing lines in prev commit 2023-08-24 17:08:46 +02:00
x
6dcf6a6d6a doc: add services page 2023-08-24 16:58:42 +02:00
parazyd
2291a2bc90 lib: Minor clippy lints. 2023-08-24 15:33:41 +02:00
parazyd
2d0e3b0d89 lib: Clean up imports 2023-08-24 15:29:16 +02:00
parazyd
481066de2f tests/network-transports: Add example of (de)serializing directly to streams. 2023-08-24 14:27:03 +02:00
parazyd
98703d361a lib: Add necessary traits around for async serial. 2023-08-24 14:27:03 +02:00
parazyd
75cb654068 serial: Introduce full async serialization support.
Unfortunately this duplicates the code, but it is beneficial for perf.
2023-08-24 14:27:03 +02:00
parazyd
dfdb4c0d5e darkfi-derive: Apply changes for internal Async{Encodable,Decodable} derive. 2023-08-24 14:27:03 +02:00
parazyd
e6fd1d5221 darkfi-derive-internal: Add support for Async{Encodable,Decodable} derive. 2023-08-24 14:27:02 +02:00
x
a53e84f5ea hosts: make quarantine_limit a configurable setting 2023-08-24 12:19:17 +02:00
x
61c269f776 net/outbound_session: start() doesnt return Err so remove error handling and result 2023-08-24 11:42:19 +02:00
x
2db408de14 p2p: greatly simplify & delet kod. p2p doesnt need a StoppableTask - the sessions themselves create their own StoppableTasks when calling start() and yield immediately. 2023-08-24 11:36:31 +02:00
x
21df1a2f52 add assert_err macro 2023-08-24 11:16:26 +02:00
x
d4ba515f7d net: remove p2p.run(), now we simply call p2p.start() and p2p.stop() 2023-08-24 11:00:58 +02:00
x
a2ae02ad9f net: reorganize code of outbound session into individual separated slots 2023-08-24 09:37:04 +02:00
x
2e1bc56371 net: remove redundant check, the prev line does p2p.exists(host). All sessions should add to this list through Session::perform_handshake_protocols() 2023-08-24 08:32:50 +02:00
x
68d51f794a net/hosts: rename load_*/get_* to fetch_*. We are doing an async get, so fetch more accurately conveys meaning here 2023-08-24 08:23:51 +02:00
parazyd
fe215e632c fuzz: Add zkas Lexer fuzzer. 2023-08-23 23:54:33 +02:00
parazyd
576a20e057 zkas: Propagate io::Result instead of aborting on errors. 2023-08-23 23:42:57 +02:00
parazyd
00e4456787 fuzz: Serialize attempt 2023-08-23 22:21:42 +02:00
parazyd
3d867832ac doc: Stop building rustdoc for dependencies. 2023-08-23 20:12:09 +02:00
parazyd
f5b34c56e6 contract/money: Enable forgotten test. 2023-08-23 19:50:14 +02:00
parazyd
535bd2c870 CI: Update mdbook binaries 2023-08-23 19:17:46 +02:00
parazyd
cee481b0c3 chore: Update crate dependencies 2023-08-23 19:15:03 +02:00
parazyd
dbe31b80cc contrib: Fix compile_all_bins.sh 2023-08-23 18:56:47 +02:00
Dastan-glitch
e67e7b25e2 rpc: fix close connection cleanly 2023-08-23 17:53:13 +03:00
y
ed53f896af chore: fix typos in comments and logs 2023-08-23 09:12:40 +00:00
greptile
970698f4a9 consensus: add unit test for bounds on f (#192)
* consensus: add unit test for bounds on f

Added test f_is_bounded to src/validator/consensus/pid.rs

Test by running:
cargo test --release --all-features f_is_bounded

* fix CI error (cargo fmt)

---------

Co-authored-by: y <y>
2023-08-23 09:12:13 +00:00
parazyd
ba0728a392 zkas: Remove clap dependency. 2023-08-23 11:06:27 +02:00
x
7399f8c15e doc: p2p-net.md improve wording further 2023-08-23 11:05:17 +02:00
x
507e4e02a6 doc: p2p-net.md improve wording for 1.1 2023-08-23 11:03:07 +02:00
x
c445c0f8eb doc: p2p-net.md clarify protocol and specify it more 2023-08-23 10:54:22 +02:00
x
3b4103e40b net: change private p2p functions to pub(crate) 2023-08-23 10:45:59 +02:00
x
97176c4424 update Cargo.lock 2023-08-23 09:58:22 +02:00
x
f203b77281 Revert "bugfix: get_log_config(), the log level is set in TermLogger::new(), not in get_log_config() which simply controls the formatting."
This reverts commit 39db8099d9.
2023-08-23 09:41:58 +02:00
x
39db8099d9 bugfix: get_log_config(), the log level is set in TermLogger::new(), not in get_log_config() which simply controls the formatting. 2023-08-23 09:25:06 +02:00
x
dfcf89e4be doc: arch/p2p.md fix small typos 2023-08-23 08:30:59 +02:00
x
723adfd01d doc: add arch/p2p.md 2023-08-23 08:17:01 +02:00