summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-10-06 21:32:33 +0200
committerChristian Grothoff <christian@grothoff.org>2017-10-06 21:32:33 +0200
commita7746c81538d9bc9299fc045d921950875908100 (patch)
tree0b2c7ed97773edfcf8988fac7cbf889088829a96
parentd55050652d02d925590c6ad25a0f358165893616 (diff)
downloadexchange-a7746c81538d9bc9299fc045d921950875908100.tar.gz
exchange-a7746c81538d9bc9299fc045d921950875908100.tar.bz2
exchange-a7746c81538d9bc9299fc045d921950875908100.zip
add assertion to be more defensive against buffer overflow (cannot happen, but this better protects against future changes)
-rw-r--r--src/exchange-lib/exchange_api_refresh_link.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/exchange-lib/exchange_api_refresh_link.c b/src/exchange-lib/exchange_api_refresh_link.c
index ca556688..5b7f6867 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)