This commit is contained in:
Christian Grothoff 2020-04-21 15:25:12 +02:00
parent 32bce6da43
commit 092944819d
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -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;