[Cryptech-Commits] [sw/libhal] 01/03: Fix buffer size check when crossing token->volatile boundary in pkey_match().

git at cryptech.is git at cryptech.is
Fri Apr 14 21:13:21 UTC 2017


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

sra at hactrn.net pushed a commit to branch ksng
in repository sw/libhal.

commit 8956d3e045e32748cdb8df7b2f69cb6c9e0837d5
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Wed Apr 12 21:49:37 2017 -0400

    Fix buffer size check when crossing token->volatile boundary in pkey_match().
---
 rpc_pkey.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/rpc_pkey.c b/rpc_pkey.c
index e0d9bdc..dc930cf 100644
--- a/rpc_pkey.c
+++ b/rpc_pkey.c
@@ -1026,8 +1026,7 @@ static inline hal_error_t match_one_keystore(const hal_ks_driver_t * const drive
 
   if ((err = hal_ks_match(ks, client, session, type, curve,
                           mask, flags, attributes, attributes_len,
-                          *result, &len, result_max - *result_len,
-                          previous_uuid)) != HAL_OK) {
+                          *result, &len, result_max, previous_uuid)) != HAL_OK) {
     (void) hal_ks_close(ks);
     return err;
   }



More information about the Commits mailing list