[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: fix auditor file parse problem
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: fix auditor file parse problem |
Date: |
Sun, 29 Mar 2020 04:03:09 +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 0582a6b5 fix auditor file parse problem
0582a6b5 is described below
commit 0582a6b567eb09c559564f5cae1908584116cc38
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Mar 29 04:03:06 2020 +0200
fix auditor file parse problem
---
src/exchangedb/exchangedb_auditorkeys.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/exchangedb/exchangedb_auditorkeys.c
b/src/exchangedb/exchangedb_auditorkeys.c
index 4adf8981..d285fc5e 100644
--- a/src/exchangedb/exchangedb_auditorkeys.c
+++ b/src/exchangedb/exchangedb_auditorkeys.c
@@ -151,7 +151,7 @@ auditor_iter (void *cls,
return GNUNET_OK;
}
size -= sizeof (struct AuditorFileHeaderP);
- if ( (size / dki_len) <=
+ if ( (size / dki_len) <
(sizeof (struct TALER_DenominationKeyValidityPS)
+ sizeof (struct TALER_AuditorSignatureP)) )
{
@@ -168,7 +168,8 @@ auditor_iter (void *cls,
sigs = (const struct TALER_AuditorSignatureP *) &af[1];
dki = (const struct TALER_DenominationKeyValidityPS *) &sigs[dki_len];
auditor_url = (const char *) &dki[dki_len];
- if ('\0' != auditor_url[url_len - 1])
+ if ( (0 == url_len) ||
+ ('\0' != auditor_url[url_len - 1]) )
{
GNUNET_break_op (0);
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: fix auditor file parse problem,
gnunet <=