[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: write overflow check nicer (#621
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: write overflow check nicer (#6215) |
Date: |
Thu, 23 Apr 2020 12:02:55 +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 c79a95c7 write overflow check nicer (#6215)
c79a95c7 is described below
commit c79a95c7d22f7cd566275057fd38135eac6b683b
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu Apr 23 12:02:52 2020 +0200
write overflow check nicer (#6215)
---
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 2de93762..3d838b4c 100644
--- a/src/util/amount.c
+++ b/src/util/amount.c
@@ -126,7 +126,8 @@ TALER_string_to_amount (const char *str,
return GNUNET_SYSERR;
}
n = *value - '0';
- if ( (amount->value * 10 + n < amount->value) ||
+ if ( (amount->value * 10 < amount->value) ||
+ (amount->value * 10 + n < amount->value) ||
(amount->value > MAX_AMOUNT_VALUE) )
{
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: write overflow check nicer (#6215),
gnunet <=