Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 250289 Details for
Bug 338137
dev-util/ccache-2.4* segfault in util.c:x_realloc()
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
same patch, nicer name
ccache-2.4-fix-realloc.patch (text/plain), 662 bytes, created by
Chris Coleman
on 2010-10-11 23:21:59 UTC
(
hide
)
Description:
same patch, nicer name
Filename:
MIME Type:
Creator:
Chris Coleman
Created:
2010-10-11 23:21:59 UTC
Size:
662 bytes
patch
obsolete
>From 52a9cd8eb8a69f9dc6944c047faf112b7137a07b Mon Sep 17 00:00:00 2001 >From: Andrew Tridgell <tridge@samba.org> >Date: Mon, 17 Jul 2006 05:41:12 +0200 >Subject: [PATCH] fixed a bug in x_realloc() > >--- > util.c | 6 +----- > 1 files changed, 1 insertions(+), 5 deletions(-) > >diff --git a/util.c b/util.c >index 073fa81..29d0e5b 100644 >--- a/util.c >+++ b/util.c >@@ -187,14 +187,10 @@ void *x_realloc(void *ptr, size_t size) > { > void *p2; > if (!ptr) return x_malloc(size); >- p2 = malloc(size); >+ p2 = realloc(ptr, size); > if (!p2) { > fatal("out of memory in x_realloc"); > } >- if (ptr) { >- memcpy(p2, ptr, size); >- free(ptr); >- } > return p2; > } > >-- >1.7.0.4 >
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 338137
:
248108
|
248812
|
250287
| 250289