[Cryptech-Commits] [sw/libhal] branch ksng updated: hal_rpc_pkey_match() works better with response buffer sized correctly.

git at cryptech.is git at cryptech.is
Thu May 4 19:08:45 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.

The following commit(s) were added to refs/heads/ksng by this push:
     new 08b3af1  hal_rpc_pkey_match() works better with response buffer sized correctly.
08b3af1 is described below

commit 08b3af196bc941c9f43156b414ea94faacf64727
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Thu May 4 15:07:26 2017 -0400

    hal_rpc_pkey_match() works better with response buffer sized correctly.
---
 rpc_client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rpc_client.c b/rpc_client.c
index aad9edf..e968369 100644
--- a/rpc_client.c
+++ b/rpc_client.c
@@ -787,7 +787,7 @@ static hal_error_t pkey_remote_match(const hal_client_handle_t client,
 
   uint8_t outbuf[nargs(11 + attributes_len * 2) + attributes_buffer_len + pad(sizeof(hal_uuid_t))];
   uint8_t *optr = outbuf, *olimit = outbuf + sizeof(outbuf);
-  uint8_t inbuf[nargs(5) + pad(result_max * sizeof(hal_uuid_t))];
+  uint8_t inbuf[nargs(5 + result_max) + pad(result_max * sizeof(hal_uuid_t))];
   const uint8_t *iptr = inbuf, *ilimit = inbuf + sizeof(inbuf);
   hal_error_t rpc_ret;
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list