The Samba-Bugzilla – Attachment 9063 Details for
Bug 10036
Lack of Sanity Checking in calls to ftell()/fcntl()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Adds Sanity Check for fcntl() call
vfs.c.patch (text/plain), 607 bytes, created by
Bill Parker
on 2013-07-18 17:22:49 UTC
(
hide
)
Description:
Adds Sanity Check for fcntl() call
Filename:
MIME Type:
Creator:
Bill Parker
Created:
2013-07-18 17:22:49 UTC
Size:
607 bytes
patch
obsolete
>--- vfs.c.orig 2013-07-17 19:56:28.243919876 -0700 >+++ vfs.c 2013-07-17 19:57:58.805916306 -0700 >@@ -436,6 +436,9 @@ > req->unread_bytes = 0; > /* Ensure the socket is blocking. */ > old_flags = fcntl(sockfd, F_GETFL, 0); >+ if (old_flags == -1) { >+ return (ssize_t)-1; >+ } > if (set_blocking(sockfd, true) == -1) { > return (ssize_t)-1; > } >@@ -480,6 +483,9 @@ > req->unread_bytes = 0; > /* Ensure the socket is blocking. */ > old_flags = fcntl(sockfd, F_GETFL, 0); >+ if (old_flags == -1) { >+ return (ssize_t)-1; >+ } > if (set_blocking(sockfd, true) == -1) { > return (ssize_t)-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:
wp02855
:
review?
Actions:
View
Attachments on
bug 10036
:
9060
|
9061
|
9062
| 9063 |
9064