commit 225665769f6f7e3005856f3c5fec6875035d51eb parent 4b0b0b4b4049a06664b369e2d959964c62a6b858 Author: Christian Grothoff <grothoff@gnunet.org> Date: Sun, 16 Aug 2026 08:36:32 +0200 sanity-check amounts Diffstat:
| M | src/pq/pq_result_helper.c | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/pq/pq_result_helper.c b/src/pq/pq_result_helper.c @@ -1290,6 +1290,9 @@ extract_array_generic ( info->currency, TALER_CURRENCY_LEN); + FAIL_IF (amount->value >= TALER_AMOUNT_MAX_VALUE); + FAIL_IF (amount->fraction >= TALER_AMOUNT_FRAC_BASE); + in += sizeof(struct TALER_PQ_AmountP); } return GNUNET_OK;