public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/26042] New: Integer overflow in getdtablesize()
@ 2020-05-26 8:36 fanrong1992 at gmail dot com
2020-05-26 10:09 ` [Bug libc/26042] " fanrong1992 at gmail dot com
0 siblings, 1 reply; 2+ messages in thread
From: fanrong1992 at gmail dot com @ 2020-05-26 8:36 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=26042
Bug ID: 26042
Summary: Integer overflow in getdtablesize()
Product: glibc
Version: 2.31
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: fanrong1992 at gmail dot com
CC: drepper.fsp at gmail dot com
Target Milestone: ---
__getdtablesize() in sysdeps/posix/getdtsz.c returns `int`, but struct rlimit
ru's field rlim_cur is `unsigned long`. When ru.rlim_cur larger than
4294967295, integer overflow will happen in __getdtablesize().
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-26 10:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-26 8:36 [Bug libc/26042] New: Integer overflow in getdtablesize() fanrong1992 at gmail dot com
2020-05-26 10:09 ` [Bug libc/26042] " fanrong1992 at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).