The Samba-Bugzilla – Attachment 6656 Details for
Bug 8276
FD_SET out of bounds access crash
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for v3-4-test
tmp34.diff (text/plain), 978 bytes, created by
Stefan Metzmacher
on 2011-06-30 15:37:02 UTC
(
hide
)
Description:
Patch for v3-4-test
Filename:
MIME Type:
Creator:
Stefan Metzmacher
Created:
2011-06-30 15:37:02 UTC
Size:
978 bytes
patch
obsolete
>From b2ec4bffca5d033a172c572ecf0605e84af68315 Mon Sep 17 00:00:00 2001 >From: Stefan Metzmacher <metze@samba.org> >Date: Thu, 30 Jun 2011 09:56:06 +0200 >Subject: [PATCH] s3:nmbd_packets: return the used number of sockets in create_listen_fdset() (bug #8276) > >Fix bug #7949 (DoS in Winbind and smbd with many file descriptors open) >(commit feb3fcd0fa4bda0967b881315595d7702f4d1752) changed the bahavior, >so that we skipped some sockets. > >This should work for v3-4-test. > >metze >--- > source3/nmbd/nmbd_packets.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/source3/nmbd/nmbd_packets.c b/source3/nmbd/nmbd_packets.c >index 1c570ea..855f6af 100644 >--- a/source3/nmbd/nmbd_packets.c >+++ b/source3/nmbd/nmbd_packets.c >@@ -1742,7 +1742,7 @@ only use %d.\n", (count*2) + 2, FD_SETSIZE)); > *maxfd = MAX( *maxfd, subrec->dgram_sock); > } > >- *listen_number = (count*2) + 2; >+ *listen_number = num; > > SAFE_FREE(*ppset); > SAFE_FREE(*psock_array); >-- >1.7.4.1 >
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 Raw
Flags:
jra
:
review+
Actions:
View
Attachments on
bug 8276
:
6644
|
6645
|
6654
|
6655
| 6656 |
6657