Skip to content

Commit ee768f4

Browse files
authored
Merge pull request #4385 from joostjager/fuzz-no-pending-payments
fuzz: fix ChaCha20 encrypt_single_block to preserve data
2 parents bbb5ed5 + dde2c82 commit ee768f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/crypto/chacha20.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ mod fuzzy_chacha {
321321
) {
322322
debug_assert_eq!(dest.len(), src.len());
323323
debug_assert!(dest.len() <= 32);
324+
dest.copy_from_slice(src);
324325
}
325326

326327
pub fn encrypt_single_block_in_place(

0 commit comments

Comments
 (0)