exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 092944819d2bf442282f0913c01bf1dc3adb2866
parent 32bce6da431371fc747e22110b89eda63290a9af
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 21 Apr 2020 15:25:12 +0200

fix #6195

Diffstat:
Msrc/lib/exchange_api_refresh_common.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/exchange_api_refresh_common.c b/src/lib/exchange_api_refresh_common.c @@ -266,7 +266,8 @@ deserialize_denomination_key (struct TALER_DenominationPublicKey *dk, buf, sizeof (uint32_t)); pbuf_size = ntohl (be); - if (size < sizeof (uint32_t) + pbuf_size) + if ( (size < sizeof (uint32_t) + pbuf_size) || + (sizeof (uint32_t) + pbuf_size < pbuf_size) ) { GNUNET_break (0); *ok = GNUNET_NO;