[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] 01/06: add assertion to be more defensive
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] 01/06: add assertion to be more defensive against buffer overflow (cannot happen, but this better protects against future changes) |
Date: |
Fri, 06 Oct 2017 22:02:23 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit a7746c81538d9bc9299fc045d921950875908100
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Oct 6 21:32:33 2017 +0200
add assertion to be more defensive against buffer overflow (cannot happen,
but this better protects against future changes)
---
src/exchange-lib/exchange_api_refresh_link.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/exchange-lib/exchange_api_refresh_link.c
b/src/exchange-lib/exchange_api_refresh_link.c
index ca55668..5b7f686 100644
--- a/src/exchange-lib/exchange_api_refresh_link.c
+++ b/src/exchange-lib/exchange_api_refresh_link.c
@@ -282,6 +282,7 @@ parse_refresh_link_ok (struct
TALER_EXCHANGE_RefreshLinkHandle *rlh,
}
/* clean up */
+ GNUNET_assert (off_coin <= num_coins);
for (i=0;i<off_coin;i++)
{
if (NULL != sigs[i].rsa_signature)
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-exchange] branch master updated (d550506 -> 332a372), gnunet, 2017/10/06
- [GNUnet-SVN] [taler-exchange] 04/06: handle plugin load failure without crashing, gnunet, 2017/10/06
- [GNUnet-SVN] [taler-exchange] 03/06: use proper type for do_shutdown() callback, gnunet, 2017/10/06
- [GNUnet-SVN] [taler-exchange] 02/06: reduce scope of local vars, gnunet, 2017/10/06
- [GNUnet-SVN] [taler-exchange] 06/06: handle (most) TEH_KS_acquire errors, gnunet, 2017/10/06
- [GNUnet-SVN] [taler-exchange] 01/06: add assertion to be more defensive against buffer overflow (cannot happen, but this better protects against future changes),
gnunet <=
- [GNUnet-SVN] [taler-exchange] 05/06: handle hypothetical failure of plugin not found, gnunet, 2017/10/06