gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: fix #6215~15757


From: gnunet
Subject: [taler-exchange] branch master updated: fix #6215~15757
Date: Thu, 23 Apr 2020 12:05:29 +0200

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 051ccdf0 fix #6215~15757
051ccdf0 is described below

commit 051ccdf0e7be353c5dce3fa0cda44b7e1df0bb3c
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu Apr 23 12:05:27 2020 +0200

    fix #6215~15757
---
 src/util/amount.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/util/amount.c b/src/util/amount.c
index 3d838b4c..b5e28051 100644
--- a/src/util/amount.c
+++ b/src/util/amount.c
@@ -128,7 +128,8 @@ TALER_string_to_amount (const char *str,
     n = *value - '0';
     if ( (amount->value * 10 < amount->value) ||
          (amount->value * 10 + n < amount->value) ||
-         (amount->value > MAX_AMOUNT_VALUE) )
+         (amount->value > MAX_AMOUNT_VALUE) ||
+         (amount->value * 10 + n > MAX_AMOUNT_VALUE) )
     {
       GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
                   "Value specified in amount `%s' is too large\n",

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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