projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
`rustfmt`: `lightning-transaction-sync/tests/integration_tests.rs`
[rust-lightning]
/
fuzz
/
src
/
peer_crypt.rs
diff --git
a/fuzz/src/peer_crypt.rs
b/fuzz/src/peer_crypt.rs
index 3acf4d664f66e7f150ba6b2fd279f9c39ebd02ad..41d8c0936060868a97df54711f725e397ea3a35d 100644
(file)
--- a/
fuzz/src/peer_crypt.rs
+++ b/
fuzz/src/peer_crypt.rs
@@
-83,7
+83,7
@@
pub fn do_test(data: &[u8]) {
Ok(len) => len,
Err(_) => return,
};
Ok(len) => len,
Err(_) => return,
};
- buf.copy_from_slice(&get_slice!(len as usize + 16));
+ buf
[..len as usize + 16]
.copy_from_slice(&get_slice!(len as usize + 16));
match crypter.decrypt_message(&mut buf[..len as usize + 16]) {
Ok(_) => {},
Err(_) => return,
match crypter.decrypt_message(&mut buf[..len as usize + 16]) {
Ok(_) => {},
Err(_) => return,