gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: fix #8105


From: gnunet
Subject: [taler-exchange] branch master updated: fix #8105
Date: Thu, 18 Jan 2024 22:23:41 +0100

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

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new dbf84c51 fix #8105
dbf84c51 is described below

commit dbf84c5121543754d10d04be6182da0603754e32
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Jan 18 22:23:37 2024 +0100

    fix #8105
---
 src/lib/exchange_api_handle.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c
index 059a4a37..4cc93f14 100644
--- a/src/lib/exchange_api_handle.c
+++ b/src/lib/exchange_api_handle.c
@@ -544,8 +544,8 @@ parse_json_auditor (struct 
TALER_EXCHANGE_AuditorInformation *auditor,
 {
   const json_t *keys;
   json_t *key;
-  unsigned int off;
-  unsigned int pos;
+  size_t off;
+  size_t pos;
   const char *auditor_url;
   struct GNUNET_JSON_Specification spec[] = {
     GNUNET_JSON_spec_fixed_auto ("auditor_pub",
@@ -637,7 +637,12 @@ parse_json_auditor (struct 
TALER_EXCHANGE_AuditorInformation *auditor,
     auditor->denom_keys[pos].auditor_sig = auditor_sig;
     pos++;
   }
-  auditor->num_denom_keys = pos;
+  if (pos > UINT_MAX)
+  {
+    GNUNET_break (0);
+    return GNUNET_SYSERR;
+  }
+  auditor->num_denom_keys = (unsigned int) pos;
   return GNUNET_OK;
 }
 

-- 
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]