Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 79288 Details for
Bug 115285
tpop3d crashes with "stack smashing attack in function connection_new()" when built with gcc-3.3.4-r1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Removes the local blocks declared with the alloc_struct macro, thus avoiding a gcc-3.x SSP compiler bug
tpop3d-nolocalblocks.patch (text/plain), 637 bytes, created by
Kevin F. Quinn (RETIRED)
on 2006-02-08 16:19:41 UTC
(
hide
)
Description:
Removes the local blocks declared with the alloc_struct macro, thus avoiding a gcc-3.x SSP compiler bug
Filename:
MIME Type:
Creator:
Kevin F. Quinn (RETIRED)
Created:
2006-02-08 16:19:41 UTC
Size:
637 bytes
patch
obsolete
>--- util.h.orig 2006-02-09 00:52:12.000000000 +0100 >+++ util.h 2006-02-09 00:51:27.000000000 +0100 >@@ -48,7 +48,8 @@ > /* alloc_struct S P > * Make P point to a new struct S, initialised as if in static storage (like > * = {0}). */ >-#define alloc_struct(S, p) do { struct S as__z = {0}; p = xmalloc(sizeof *p); *p = as__z; } while (0) >+//#define alloc_struct(S, p) do { struct S as__z = {0}; p = xmalloc(sizeof *p); *p = as__z; } while (0) >+#define alloc_struct(S, p) do { p = xmalloc(sizeof *p); memset(p,0,sizeof(struct S)); } while (0) > > /* reallocating strncat. */ > char *xstrncat(char *pfx, const char *sfx, const size_t n);
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 115285
: 79288