diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-21 15:25:12 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-21 15:25:12 +0200 |
commit | 092944819d2bf442282f0913c01bf1dc3adb2866 (patch) | |
tree | b721b162a8b985f42a8a4f03f8be96e275e8f6d6 | |
parent | 32bce6da431371fc747e22110b89eda63290a9af (diff) |
fix #6195
-rw-r--r-- | src/lib/exchange_api_refresh_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/exchange_api_refresh_common.c b/src/lib/exchange_api_refresh_common.c index f26c5bcc4..9e9f6e0c0 100644 --- 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; |