From 051ccdf0e7be353c5dce3fa0cda44b7e1df0bb3c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 23 Apr 2020 12:05:27 +0200 Subject: [PATCH] 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 3d838b4ce..b5e28051c 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",