This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nis/3559] unchecked malloc in glibc/sunrpc/svc_run.c
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 22 Nov 2006 07:52:00 -0000
- Subject: [Bug nis/3559] unchecked malloc in glibc/sunrpc/svc_run.c
- References: <20061122051923.3559.csnook@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jakub at redhat dot com 2006-11-22 07:51 -------
If we touch this file, there are further things we should look at:
1) svc_exit's comment says it should be usable in signal handler, but calling
free isn't possible in signal handlers, perhaps just clearing svc_maxpoll_fd
and freeing in svc_run instead
2) doing a malloc/free pair in every single svc_run loop iteration sounds
overkill to me, it should be enough if it reallocates the memory if
svc_maxpoll_fd changes since last invocation
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3559
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.