Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 216343 Details for
Bug 300819
sys-apps/arrayprobe-2.0-r2: Early stable for memleak/double init fixes
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Patch to fix memleak and malloc
malloc_and_strlen.patch (text/plain), 1.12 KB, created by
Tobias Klausmann (RETIRED)
on 2010-01-13 11:27:10 UTC
(
hide
)
Description:
Patch to fix memleak and malloc
Filename:
MIME Type:
Creator:
Tobias Klausmann (RETIRED)
Created:
2010-01-13 11:27:10 UTC
Size:
1.12 KB
patch
obsolete
>--- probe.c.old 2010-01-13 12:15:32.000000000 +0100 >+++ probe.c 2010-01-13 12:16:44.000000000 +0100 >@@ -354,7 +354,7 @@ > int drivenum = event.detail.logstatchange.logicaldrivenumber; > logdrvs[drivenum].state.state = event.detail.logstatchange.newlogicaldrivestate; > logdrvs[drivenum].state.severity = logicaldrivestatusseverity[event.detail.logstatchange.newlogicaldrivestate]; >- logdrvs[drivenum].state.message = (char *)malloc(strlen(logicaldrivestatusstr[event.detail.logstatchange.newlogicaldrivestate] + 1)); >+ logdrvs[drivenum].state.message = (char *)malloc(strlen(logicaldrivestatusstr[event.detail.logstatchange.newlogicaldrivestate]) + 1); > strcpy (logdrvs[drivenum].state.message, logicaldrivestatusstr[event.detail.logstatchange.newlogicaldrivestate]); > } > if (verbose) { >@@ -479,7 +479,7 @@ > int ida_device = 0; /* only for use with -f , used to determine protocol to use */ > int max_logical = 64; /* hardcoded */ > int cur_logical = 0; /* number of drives detected */ >- logdrv *logdrvs = (logdrv *)malloc(sizeof(logdrv)*max_logical); >+ logdrv *logdrvs; > int worst_disk; > int worst_sev = SEV_NORMAL; > int cntr;
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 300819
: 216343 |
216358