commit e760fd62e576b90d36c8680352225e4547df9ffa parent de5e00b086e857a14970d5077fdcf3d849e53194 Author: Christian Grothoff <grothoff@gnunet.org> Date: Sat, 23 Aug 2025 22:48:30 +0200 fix error handling in sanction rater Diffstat:
| M | src/kyclogic/kyclogic_sanctions.c | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/kyclogic/kyclogic_sanctions.c b/src/kyclogic/kyclogic_sanctions.c @@ -195,6 +195,12 @@ process_buffer (struct TALER_KYCLOGIC_SanctionRater *sr) if ( (NULL == end) && (sr->read_pos < 2048) ) return true; + if (NULL == end) + { + /* line returned by sanction rater way too long */ + GNUNET_break (0); + return false; + } end++; buf_len = end - sr->read_buf; while (0 != buf_len)