[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] branch master updated (332a372 -> 1c725c0)
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] branch master updated (332a372 -> 1c725c0) |
Date: |
Fri, 06 Oct 2017 22:06:38 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a change to branch master
in repository exchange.
from 332a372 handle (most) TEH_KS_acquire errors
new d86a661 really carefully check strtoll() return value before casting
to uint64_t
new 1c725c0 use proper enum value for error code on signature parsing in
wire plugin
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
src/auditor/taler-auditor.c | 1 +
src/exchange-tools/taler-exchange-keyup.c | 12 ++++++++----
src/wire/plugin_wire_test.c | 2 +-
3 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/src/auditor/taler-auditor.c b/src/auditor/taler-auditor.c
index bf8bd97..f9f03b0 100644
--- a/src/auditor/taler-auditor.c
+++ b/src/auditor/taler-auditor.c
@@ -1941,6 +1941,7 @@ wire_transfer_information_cb (void *cls,
return;
}
+ GNUNET_assert (NULL != dki); /* mostly to help static analysis */
/* Check transaction history to see if it supports aggregate
valuation */
check_transaction_history (coin_pub,
diff --git a/src/exchange-tools/taler-exchange-keyup.c
b/src/exchange-tools/taler-exchange-keyup.c
index facb832..ccaca14 100644
--- a/src/exchange-tools/taler-exchange-keyup.c
+++ b/src/exchange-tools/taler-exchange-keyup.c
@@ -363,18 +363,22 @@ get_anchor_iter (void *cls,
struct GNUNET_TIME_Absolute stamp;
const char *base;
char *end = NULL;
+ long long int bval;
base = GNUNET_STRINGS_get_short_name (filename);
- stamp.abs_value_us = strtoll (base,
- &end,
- 10);
- if ((NULL == end) || (0 != *end))
+ bval = strtoll (base,
+ &end,
+ 10);
+ if ( (NULL == end) ||
+ (0 != *end) ||
+ (0 > bval) )
{
fprintf(stderr,
"Ignoring unexpected file `%s'.\n",
filename);
return GNUNET_OK;
}
+ stamp.abs_value_us = (uint64_t) bval;
*anchor = GNUNET_TIME_absolute_max (stamp,
*anchor);
return GNUNET_OK;
diff --git a/src/wire/plugin_wire_test.c b/src/wire/plugin_wire_test.c
index 6649b91..c41bd7e 100644
--- a/src/wire/plugin_wire_test.c
+++ b/src/wire/plugin_wire_test.c
@@ -307,7 +307,7 @@ test_wire_validate (void *cls,
sizeof (sig)))
{
GNUNET_break (0);
- return GNUNET_SYSERR;
+ return TALER_EC_DEPOSIT_INVALID_WIRE_FORMAT_SIGNATURE;
}
if (GNUNET_OK !=
GNUNET_CRYPTO_eddsa_verify (TALER_SIGNATURE_MASTER_TEST_DETAILS,
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-exchange] branch master updated (332a372 -> 1c725c0),
gnunet <=