Uh oh!
There was an error while loading. Please reload this page.
Onion messages: add fuzz testing - #1648
Conversation
afd32fd to
2721637Compared5aafda to
5eacbb5CompareTheBlueMatt
commented
Aug 5, 2022
Test LGTM, giving this some CPU cycles now. |
TheBlueMatt
commented
Aug 7, 2022
Hmmm, I gave this a few weeks of CPU time and it wasn't able to find its way into a valid onion message decryption at all. This tells me we need to seed the fuzzer, like the way we do full_stack_target, at least, if not find a way to simplify the target here. I'm not sure quite how to simplify the target greatly, though, so maybe just seed it and move on. |
TheBlueMatt
commented
Aug 7, 2022
Specifically, the fuzzer did not fail with this patch: |
a3423c9 to
5c80aaaComparevalentinewallace
commented
Aug 8, 2022
I added some seeding but could add more onion message seeds if it helps. Unsure if it would be good to add |
b284e50 to
e693109Comparevalentinewallace
commented
Aug 11, 2022
Able to hit the obvious panics now. I put the seeds in |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
e693109 to
611d901Compare611d901 to
0cb95deCompare0cb95de to
75f2fceCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Also update the fuzz ChaCha20Poly1305 to not mark as finished after a single encrypt_in_place. This is because more bytes may still need to be encrypted, causing us to panic at the assertion that finished == false when we go to encrypt more. Also fix unused_mut warning in messenger + add log on OM forward for testing
75f2fce to
8424f3fCompare
Adds fuzz testing for onion messages.