Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 246918 Details for
Bug 336606
net-fs/coda _FORTIFY_SOURCE indicates presence of overflow
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
coda-6.9.5_volutil-fix-strncyp-fail.patch
coda-6.9.5_volutil-fix-strncyp-fail.patch (text/plain), 891 bytes, created by
Radoslaw Szkodzinski
on 2010-09-11 21:44:16 UTC
(
hide
)
Description:
coda-6.9.5_volutil-fix-strncyp-fail.patch
Filename:
MIME Type:
Creator:
Radoslaw Szkodzinski
Created:
2010-09-11 21:44:16 UTC
Size:
891 bytes
patch
obsolete
>--- coda-6.9.5/coda-src/volutil/backup.cc.orig 2010-09-11 21:59:30.000000000 +0200 >+++ coda-6.9.5/coda-src/volutil/backup.cc 2010-09-11 22:53:56.000000000 +0200 >@@ -86,10 +86,11 @@ > static int Debug = 0; /* Global debugging flag */ > static int Naptime = 30; /* Sleep period for PollLWP */ > >+#define HOST_NAME_LEN 100 > struct hostinfo { > bit32 address; /* Assume host IP addresses are 32 bits */ > RPC2_Handle rpcid; /* should be -1 if connection is dead. */ >- char name[36]; >+ char name[HOST_NAME_LEN]; > } Hosts[N_SERVERIDS]; > > #define BADCONNECTION (RPC2_Handle) -1 >@@ -1086,7 +1087,7 @@ > CODA_ASSERT(hostent->h_length == 4); > memcpy(&netaddress, hostent->h_addr, 4); > HostAddress[sid] = Hosts[sid].address = ntohl(netaddress); >- strncpy(Hosts[sid].name, hostent->h_name, 100); >+ strncpy(Hosts[sid].name, hostent->h_name, HOST_NAME_LEN); > } > } > }
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 336606
:
246605
| 246918