Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 146510 Details for
Bug 212363
app-crypt/mit-krb5 < 1.6.3 MITKRB5-SA-{2008-001|2008-002} (CVE-2008-{0062,0063,0947,0948})
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
MITKRB5-SA-2008-002.patch
MITKRB5-SA-2008-002.patch (text/plain), 1.47 KB, created by
Markus Ullmann (RETIRED)
on 2008-03-18 20:41:07 UTC
(
hide
)
Description:
MITKRB5-SA-2008-002.patch
Filename:
MIME Type:
Creator:
Markus Ullmann (RETIRED)
Created:
2008-03-18 20:41:07 UTC
Size:
1.47 KB
patch
obsolete
>--- src/lib/rpc/svc.c (revision 1666) >+++ src/lib/rpc/svc.c (local) >@@ -109,15 +109,17 @@ > if (sock < FD_SETSIZE) { > xports[sock] = xprt; > FD_SET(sock, &svc_fdset); >+ if (sock > svc_maxfd) >+ svc_maxfd = sock; > } > #else > if (sock < NOFILE) { > xports[sock] = xprt; > svc_fds |= (1 << sock); >+ if (sock > svc_maxfd) >+ svc_maxfd = sock; > } > #endif /* def FD_SETSIZE */ >- if (sock > svc_maxfd) >- svc_maxfd = sock; > } > > /* >--- src/lib/rpc/svc_tcp.c (revision 1666) >+++ src/lib/rpc/svc_tcp.c (local) >@@ -54,6 +54,14 @@ > extern errno; > */ > >+#ifndef FD_SETSIZE >+#ifdef NBBY >+#define NOFILE (sizeof(int) * NBBY) >+#else >+#define NOFILE (sizeof(int) * 8) >+#endif >+#endif >+ > /* > * Ops vector for TCP/IP based rpc service handle > */ >@@ -221,6 +221,19 @@ > register SVCXPRT *xprt; > register struct tcp_conn *cd; > >+#ifdef FD_SETSIZE >+ if (fd >= FD_SETSIZE) { >+ (void) fprintf(stderr, "svc_tcp: makefd_xprt: fd too high\n"); >+ xprt = NULL; >+ goto done; >+ } >+#else >+ if (fd >= NOFILE) { >+ (void) fprintf(stderr, "svc_tcp: makefd_xprt: fd too high\n"); >+ xprt = NULL; >+ goto done; >+ } >+#endif > xprt = (SVCXPRT *)mem_alloc(sizeof(SVCXPRT)); > if (xprt == (SVCXPRT *)NULL) { > (void) fprintf(stderr, "svc_tcp: makefd_xprt: out of memory\n"); >@@ -271,6 +292,10 @@ > * make a new transporter (re-uses xprt) > */ > xprt = makefd_xprt(sock, r->sendsize, r->recvsize); >+ if (xprt == NULL) { >+ close(sock); >+ return (FALSE); >+ } > xprt->xp_raddr = addr; > xprt->xp_addrlen = len; > xprt->xp_laddr = laddr; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 212363
:
145336
|
145337
|
146508
|
146509
| 146510 |
146511
|
146512