]> 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:22:44 +0000 (09:22 +0200)
commit1e398f406bb7ad8ffac66e664a44f11d2a0b8f36
tree2400e80c1830652b36e06a5678c33e998c0614b1
parent4d27d4b9a188786fc6a56745506cec2acfc51f83
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