summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-23 12:05:27 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-23 12:05:27 +0200
commit051ccdf0e7be353c5dce3fa0cda44b7e1df0bb3c (patch)
tree3f4edb9d5e0e7c60b4de4e0e70e9e0f620477394
parentc79a95c7d22f7cd566275057fd38135eac6b683b (diff)
downloadexchange-051ccdf0e7be353c5dce3fa0cda44b7e1df0bb3c.tar.gz
exchange-051ccdf0e7be353c5dce3fa0cda44b7e1df0bb3c.tar.bz2
exchange-051ccdf0e7be353c5dce3fa0cda44b7e1df0bb3c.zip
fix #6215~15757
-rw-r--r--src/util/amount.c3
1 files changed, 2 insertions, 1 deletions
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",