projects
/
glibc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
396f065
)
nscd: Use time_t for return type of addgetnetgrentX
author
Florian Weimer <fweimer@redhat.com>
Thu, 2 May 2024 15:06:19 +0000
(17:06 +0200)
committer
Florian Weimer <fweimer@redhat.com>
Thu, 2 May 2024 18:55:04 +0000
(20:55 +0200)
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
patch
|
blob
|
history
diff --git
a/nscd/netgroupcache.c
b/nscd/netgroupcache.c
index aaabbbb003e45360065453eddcfeba3a6bf2535d..adc34ba6b4ba6816fc8027f41566dff976c32a75 100644
(file)
--- a/
nscd/netgroupcache.c
+++ b/
nscd/netgroupcache.c
@@
-680,8
+680,8
@@
readdinnetgr (struct database_dyn *db, struct hashentry *he,
.key_len = he->len
};
-
in
t timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
- he, dh);
+
time_
t timeout = addinnetgrX (db, -1, &req, db->data + he->key, he->owner,
+
he, dh);
if (timeout < 0)
timeout = 0;
return timeout;
This page took
0.072335 seconds
and
5
git commands to generate.