Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 338946 Details for
Bug 457194
dev-libs/libffi-3.0.12 - test killed by PaX
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
the difference between libffi-3.0.11-r1 and libffi-3.0.12
libffi-3.0.12-emutramp.patch (text/plain), 1.05 KB, created by
iGentoo
on 2013-02-15 05:24:25 UTC
(
hide
)
Description:
the difference between libffi-3.0.11-r1 and libffi-3.0.12
Filename:
MIME Type:
Creator:
iGentoo
Created:
2013-02-15 05:24:25 UTC
Size:
1.05 KB
patch
obsolete
> src/closures.c | 23 ++++++++++++++++++++--- > 1 file changed, 20 insertions(+), 3 deletions(-) > >diff --git a/src/closures.c b/src/closures.c >index fecbc4a..3998b29 100644 >--- a/src/closures.c >+++ b/src/closures.c >@@ -176,15 +176,32 @@ selinux_enabled_check (void) > #ifdef FFI_MMAP_EXEC_EMUTRAMP_PAX > #include <stdlib.h> > >+#define LINE_BUFFER 1024 > static int emutramp_enabled = -1; > > static int > emutramp_enabled_check (void) > { >- if (getenv ("FFI_DISABLE_EMUTRAMP") == NULL) >- return 1; >- else >+ FILE *f; >+ char first[LINE_BUFFER], second[LINE_BUFFER]; >+ char conf_line[LINE_BUFFER]; >+ f = fopen("/proc/self/status", "r"); >+ if (f == NULL) > return 0; >+ else >+ while( fgets(conf_line, LINE_BUFFER, f) ) >+ { >+ sscanf(conf_line, "%s %s", first, second ); >+ if( !strcmp( first, "PaX:" ) ) >+ if( second[1] == 'E' ) >+ if (getenv ("FFI_DISABLE_EMUTRAMP") == NULL) >+ { >+ fclose (f); >+ return 1; >+ } >+ } >+ fclose (f); >+ return 0; > } > > #define is_emutramp_enabled() (emutramp_enabled >= 0 ? emutramp_enabled \
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 457194
:
338826
|
338828
|
338946
|
343064
|
344008
|
346610
|
346832
|
346850