wok-current view glibc/stuff/CVE-2024-33601_CVE-2024-33602_2.patch @ rev 25785

Mass rebuild after bump to glibc 2.31, add epson printer and scanner package
author Stanislas Leduc <shann@slitaz.org>
date Tue Jul 15 20:40:17 2025 +0000 (3 months ago)
parents
children
line source
1 From 1e398f406bb7ad8ffac66e664a44f11d2a0b8f36 Mon Sep 17 00:00:00 2001
2 From: Florian Weimer <fweimer@redhat.com>
3 Date: Thu, 2 May 2024 17:06:19 +0200
4 Subject: [PATCH] nscd: Use time_t for return type of addgetnetgrentX
6 Using int may give false results for future dates (timeouts after the
7 year 2028).
9 Fixes commit 04a21e050d64a1193a6daab872bca2528bda44b ("CVE-2024-33601,
10 CVE-2024-33602: nscd: netgroup: Use two buffers in addgetnetgrentX
11 (bug 31680)").
13 Reviewed-by: Carlos O'Donell <carlos@redhat.com>
14 (cherry picked from commit 4bbca1a44691a6e9adcee5c6798a707b626bc331)
15 ---
16 nscd/netgroupcache.c | 4 ++--
17 1 file changed, 2 insertions(+), 2 deletions(-)
19 diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
20 index ee98ffd96ed..7a4e767be2b 100644
21 --- a/nscd/netgroupcache.c
22 +++ b/nscd/netgroupcache.c
23 @@ -681,8 +681,8 @@ readdinnetgr (struct database_dyn *db, struct hashentry *he,
24 .key_len = he->len
25 };
27 - int timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
28 - he, dh);
29 + time_t timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
30 + he, dh);
31 if (timeout < 0)
32 timeout = 0;
33 return timeout;