gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet-scheme] 49/49: crypto: Fix type confusion in hash-slice [bugfix]


From: gnunet
Subject: [gnunet-scheme] 49/49: crypto: Fix type confusion in hash-slice [bugfix]
Date: Sat, 25 Dec 2021 23:00:26 +0100

This is an automated email from the git hooks/post-receive script.

maxime-devos pushed a commit to branch master
in repository gnunet-scheme.

commit 5c7bf087bb3c9ccdbf676baf22ff8871bea84ac0
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Sat Dec 25 21:57:19 2021 +0000

    crypto: Fix type confusion in hash-slice [bugfix]
    
    This resolves a test failure.
    
    * gnu/gnunet/crypto.scm (hash-slice!): Wrap the bytevector in a
      slice with 'bv-slice/read-write'.
---
 gnu/gnunet/crypto.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/gnunet/crypto.scm b/gnu/gnunet/crypto.scm
index c824faf..eb86c47 100644
--- a/gnu/gnunet/crypto.scm
+++ b/gnu/gnunet/crypto.scm
@@ -47,7 +47,8 @@ return a bytevector with the resulting hash."
     (define (hash-slice! algorithm slice to)
       "Hash the data in the readable bytevector slice @var{slice} and write the
 hash to the bytevector slice @var{to}."
-      (slice-copy! (hash-slice/bytevector algorithm slice) to))
+      (slice-copy! (bv-slice/read-write (hash-slice/bytevector algorithm 
slice))
+                  to))
 
     (define (hash-slice algorithm slice)
       "Hash the data in the readable bytevector slice @var{slice} and return a

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]