Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 198739 Details for
Bug 278610
Fix segfault in uclibc 0.9.30.1 (triggered by network socket use)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Fix null dereference
ifa_addr_null.patch (text/plain), 838 bytes, created by
Ed Wildgoose
on 2009-07-21 20:43:57 UTC
(
hide
)
Description:
Fix null dereference
Filename:
MIME Type:
Creator:
Ed Wildgoose
Created:
2009-07-21 20:43:57 UTC
Size:
838 bytes
patch
obsolete
>--- libc/inet/getaddrinfo.c.orig 2009-07-20 21:48:23 +0100 >+++ libc/inet/getaddrinfo.c 2009-07-20 22:24:41 +0100 >@@ -187,6 +187,8 @@ > } > > for (runp = ifa; runp != NULL; runp = runp->ifa_next) { >+ if (runp->ifa_addr == NULL) >+ continue; > #if defined __UCLIBC_HAS_IPV4__ > if (runp->ifa_addr->sa_family == PF_INET) > seen |= SEEN_IPV4; >--- libc/inet/ifaddrs.c.orig 2009-07-20 22:25:13 +0100 >+++ libc/inet/ifaddrs.c 2009-07-20 22:37:38 +0100 >@@ -452,10 +452,7 @@ > > /* Allocate memory for all entries we have and initialize next > pointer. */ >- ifas = (struct ifaddrs_storage *) calloc (1, >- (newlink + newaddr) >- * sizeof (struct ifaddrs_storage) >- + ifa_data_size); >+ ifas = calloc (1, (newlink + newaddr) * sizeof (ifas[0]) + ifa_data_size); > if (ifas == NULL) > { > result = -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
Actions:
View
Attachments on
bug 278610
: 198739