exchange

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

commit 6d4e8e1521125871068928618e4c0f1db8a39b1f
parent 027bbade02d2a24c9f0649a5ad5ff9f4346b3bc6
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 18 Nov 2026 17:46:19 +0100

fix #12215

Diffstat:
Msrc/auditor/taler-helper-auditor-coins.c | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/src/auditor/taler-helper-auditor-coins.c b/src/auditor/taler-helper-auditor-coins.c @@ -1750,6 +1750,21 @@ refresh_session_cb (struct CoinContext *cc, GNUNET_assert (rowid >= TALER_ARL_USE_PP (coins_melt_serial_id)); /* should be monotonically increasing */ TALER_ARL_USE_PP (coins_melt_serial_id) = rowid + 1; + if ( (0 == num_nds) || + (num_nds > TALER_MAX_COINS) ) + { + /* the number of fresh coins sizes arrays on the stack below */ + qs = report_row_inconsistency ("melt", + rowid, + "invalid number of fresh coins"); + if (0 > qs) + { + GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs); + cc->qs = qs; + return GNUNET_SYSERR; + } + return GNUNET_OK; + } qs = TALER_ARL_get_denomination_info (old_denom_pub, &issue, &h_denom_pub);