]> git.ipfire.org Git - thirdparty/glibc.git/commit
nscd: Use time_t for return type of addgetnetgrentX
authorFlorian Weimer <fweimer@redhat.com>
Thu, 2 May 2024 15:06:19 +0000 (17:06 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 3 May 2024 07:25:14 +0000 (09:25 +0200)
commit4ab74e9ba7a5e4129bd47ef1c208a9de95649558
tree4d892d156083c252dcf09f74a1f1207947c0cd6f
parent3ed195a8ec89da281e3c4bf887a13d281b72d8f4
nscd: Use time_t for return type of addgetnetgrentX

Using int may give false results for future dates (timeouts after the
year 2028).

Fixes commit 04a21e050d64a1193a6daab872bca2528bda44b ("CVE-2024-33601,
CVE-2024-33602: nscd: netgroup: Use two buffers in addgetnetgrentX
(bug 31680)").

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
(cherry picked from commit 4bbca1a44691a6e9adcee5c6798a707b626bc331)
nscd/netgroupcache.c