The Samba-Bugzilla – Attachment 9061 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
async_sock.c.patch (text/plain), 706 bytes, created by
Bill Parker
on 2013-07-18 17:20:22 UTC
(
hide
)
Description:
Adds Sanity Check for fcntl() call
Filename:
MIME Type:
Creator:
Bill Parker
Created:
2013-07-18 17:20:22 UTC
Size:
706 bytes
patch
obsolete
>--- async_sock.c.orig 2013-07-17 19:22:43.493922674 -0700 >+++ async_sock.c 2013-07-17 19:29:06.393912269 -0700 >@@ -306,7 +306,10 @@ > post_errno: > tevent_req_error(result, state->sys_errno); > done: >- fcntl(fd, F_SETFL, state->old_sockflags); >+ if (fcntl(fd, F_SETFL, state->old_sockflags) == -1) { >+ state->sys_errno = errno; >+ tevent_req_error(result, state->sys_errno); >+ } > return tevent_req_post(result, ev); > } > >@@ -352,7 +355,9 @@ > tevent_req_data(req, struct async_connect_state); > int err; > >- fcntl(state->fd, F_SETFL, state->old_sockflags); >+ if (fcntl(state->fd, F_SETFL, state->old_sockflags) == -1) { >+ return -1; >+ } > > if (tevent_req_is_unix_error(req, &err)) { > *perrno = err;
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