mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 23:08:36 +01:00
[fuzz] Fix slice copy in peer_crypt_target
This has apparently been broken for quite some time...I guess `peer_crypt_target` doesn't get much CPU anymore.
This commit is contained in:
parent
c9e4410a05
commit
7377cc99c7
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ pub fn do_test(data: &[u8]) {
|
|||
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,
|
||||
|
|
Loading…
Add table
Reference in a new issue