The Samba-Bugzilla – Attachment 9062 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
recvfile.c.patch (text/plain), 402 bytes, created by
Bill Parker
on 2013-07-18 17:22:02 UTC
(
hide
)
Description:
Adds Sanity Check for fcntl() call
Filename:
MIME Type:
Creator:
Bill Parker
Created:
2013-07-18 17:22:02 UTC
Size:
402 bytes
patch
obsolete
>--- recvfile.c.orig 2013-07-17 19:50:43.587919082 -0700 >+++ recvfile.c 2013-07-17 19:51:51.016918916 -0700 >@@ -260,6 +260,11 @@ > } > > old_flags = fcntl(sockfd, F_GETFL, 0); >+ if (old_flags == -1) { >+ free(buffer); >+ return -1; >+ } >+ > if (set_blocking(sockfd, true) == -1) { > free(buffer); > return -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