From 30cedb1a5e16b46b8efa7d6a3d907a6ac3136ae2 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 20 Jun 2025 09:27:23 +0200 Subject: [PATCH] tevent: Fix 1649525 Use of 32-bit time_t Coverity ID "1649525 Use of 32-bit time_t" is correct. What Coverity does not see is that this routine is the only one assigning to ev->wait_timeout. Make Coverity happy with the MIN(). Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- lib/tevent/tevent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tevent/tevent.c b/lib/tevent/tevent.c index c9f57fece94..12e1f407bc6 100644 --- a/lib/tevent/tevent.c +++ b/lib/tevent/tevent.c @@ -611,7 +611,7 @@ uint32_t tevent_context_set_wait_timeout(struct tevent_context *ev, ev->wait_timeout = tevent_timeval_set((time_t)secs, (secs == 0) ? INT32_MAX: 0); - return ret; + return MIN(ret, INT32_MAX); } /* -- 2.47.2