Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 24034 Details for
Bug 38630
Sanity check the forward and backward chunk pointers in the unlink() macro
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
glibc-2.3.3-owl-malloc-unlink-sanity-check.diff
glibc-2.3.3-owl-malloc-unlink-sanity-check.diff (text/plain), 1.39 KB, created by
solar (RETIRED)
on 2004-01-18 11:57:20 UTC
(
hide
)
Description:
glibc-2.3.3-owl-malloc-unlink-sanity-check.diff
Filename:
MIME Type:
Creator:
solar (RETIRED)
Created:
2004-01-18 11:57:20 UTC
Size:
1.39 KB
patch
obsolete
>--- malloc/malloc.c.orig 2004-01-03 18:36:23.000000000 -0500 >+++ malloc/malloc.c 2004-01-03 18:46:16.000000000 -0500 >@@ -311,6 +311,11 @@ extern "C" { > #define assert(x) ((void)0) > #endif > >+/* needed for owl-malloc-unlink-sanity-check */ >+#include <abort-instr.h> >+#ifndef ABORT_INSTRUCTION >+#define ABORT_INSTRUCTION >+#endif > > /* > INTERNAL_SIZE_T is the word-size used for internal bookkeeping >@@ -1951,6 +1956,14 @@ typedef struct malloc_chunk* mbinptr; > #define unlink(P, BK, FD) { \ > FD = P->fd; \ > BK = P->bk; \ >+ /* owl-malloc-unlink-sanity-check */ \ >+ if (FD->bk != P || BK->fd != P) \ >+ { \ >+ ABORT_INSTRUCTION; \ >+ _exit(127); \ >+ while (1) \ >+ ABORT_INSTRUCTION; \ >+ } \ > FD->bk = BK; \ > BK->fd = FD; \ > }
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 38630
:
24033
| 24034