Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 70640 Details for
Bug 104311
Segmentation Fault in net-ftp/ftp (version 0.17-r5) with vsftpd 2.0.3-r1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ftp-dont-strcpy-overlapping.patch
ftp-dont-strcpy-overlapping.patch (text/plain), 442 bytes, created by
SpanKY
on 2005-10-13 22:02:02 UTC
(
hide
)
Description:
ftp-dont-strcpy-overlapping.patch
Filename:
MIME Type:
Creator:
SpanKY
Created:
2005-10-13 22:02:02 UTC
Size:
442 bytes
patch
obsolete
>From the strncpy(3) manpage: > >The strings may not overlap, and the destination string dest must be large >enough to receive the copy. > >http://bugs.gentoo.org/104311 > >--- ftp/ftp.c >+++ ftp/ftp.c >@@ -1808,7 +1808,7 @@ > } > ip->connect = connected; > connected = op->connect; >- if (hostname) { >+ if (hostname && ip->name != hostname) { > (void) strncpy(ip->name, hostname, sizeof(ip->name) - 1); > ip->name[sizeof(ip->name) - 1] = '\0'; > }
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 104311
:
70640