Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 321722 Details for
Bug 423941
dev-libs/ucommon-5.2.2-r1: _FORTIFY_SOURCE points to buffer overflow
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
patch for fix this bug
fortify.patch (text/plain), 1.29 KB, created by
Andreis Vinogradovs ( slepnoga )
on 2012-08-19 21:52:39 UTC
(
hide
)
Description:
patch for fix this bug
Filename:
MIME Type:
Creator:
Andreis Vinogradovs ( slepnoga )
Created:
2012-08-19 21:52:39 UTC
Size:
1.29 KB
patch
obsolete
>--- commoncpp/address.cpp.old 2012-08-20 00:47:00.867952515 +0300 >+++ commoncpp/address.cpp 2012-08-20 00:49:14.129807658 +0300 >@@ -360,7 +360,7 @@ > if(ipaddr) > delete[] ipaddr; > ipaddr = new struct in_addr[1]; >- memset((void *)&ipaddr[0], 0, sizeof(ipaddr)); >+ memset((void *)&ipaddr[0], 0, sizeof(struct in_addr)); > return; > } > >@@ -498,7 +498,7 @@ > : validator(_validator), hostname(NULL) { > addr_count = 1; > ipaddr = new struct in6_addr[1]; >- memcpy(ipaddr, &in6addr_any, sizeof(in6_addr)); >+ memcpy(ipaddr, &in6addr_any, sizeof(struct in6_addr)); > } > > IPV6Address::IPV6Address(const char *address, const IPV6Validator *_validator) : >@@ -716,7 +716,7 @@ > if(ipaddr) > delete[] ipaddr; > ipaddr = new struct in6_addr[1]; >- memset((void *)&ipaddr[0], 0, sizeof(ipaddr)); >+ memset((void *)&ipaddr[0], 0, sizeof(struct in6_addr)); > return; > } > >@@ -796,7 +796,7 @@ > if(ipaddr) > delete[] ipaddr; > ipaddr = new struct in6_addr[1]; >- memset((void *)&ipaddr[0], 0, sizeof(ipaddr)); >+ memset((void *)&ipaddr[0], 0, sizeof(struct in6_addr)); > return; > } >
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
Actions:
View
Attachments on
bug 423941
: 321722