Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 558908 Details for
Bug 672918
sys-apps/sandbox segfaults in sb_check_exec() for programs compiled with sys-devel/clang-7.0.1, >=sys-libs/glibc-2.28, -fuse-ld=lld and -Wl,--hash-style=gnu
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
sandbox-2.14-fix-parse-elf.patch
0001-Fix-a-segfault-in-PARSE_ELF-on-binaries-generated-by.patch (text/plain), 1.36 KB, created by
Dennis Schridde
on 2018-12-29 22:48:44 UTC
(
hide
)
Description:
sandbox-2.14-fix-parse-elf.patch
Filename:
MIME Type:
Creator:
Dennis Schridde
Created:
2018-12-29 22:48:44 UTC
Size:
1.36 KB
patch
obsolete
>From 71a68fc29f30bf8646064a213955c2b22dfca0fd Mon Sep 17 00:00:00 2001 >From: Dennis Schridde <devurandom@gmx.net> >Date: Sat, 29 Dec 2018 23:45:23 +0100 >Subject: [PATCH] Fix a segfault in PARSE_ELF on binaries generated by clang > and lld > >The symbols we search for are of type object (`__*_hook`) or func (`__libc_*`), >hence we should limit the condition to those. > >Closes: https://bugs.gentoo.org/672918 >Signed-Off-By: Dennis Schridde <devurandom@gmx.net> >--- > libsandbox/wrapper-funcs/__wrapper_exec.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/libsandbox/wrapper-funcs/__wrapper_exec.c b/libsandbox/wrapper-funcs/__wrapper_exec.c >index 226c0c0..e0070e5 100644 >--- a/libsandbox/wrapper-funcs/__wrapper_exec.c >+++ b/libsandbox/wrapper-funcs/__wrapper_exec.c >@@ -165,7 +165,9 @@ static bool sb_check_exec(const char *filename, char *const argv[]) > \ > while (sym < symend) { \ > char *symname = (void *)(elf + stroff + sym->st_name); \ >- if (ELF##n##_ST_VISIBILITY(sym->st_other) == STV_DEFAULT && \ >+ if ((ELF##n##_ST_TYPE(sym->st_info) == STT_OBJECT || \ >+ ELF##n##_ST_TYPE(sym->st_info) == STT_FUNC) && \ >+ ELF##n##_ST_VISIBILITY(sym->st_other) == STV_DEFAULT && \ > sym->st_shndx != SHN_UNDEF && sym->st_shndx < SHN_LORESERVE && \ > sym->st_name && \ > /* Minor optimization to avoid strcmp. */ \ >-- >2.20.1 >
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 672918
:
557560
|
557770
|
558892
|
558894
|
558896
|
558898
|
558900
|
558906
|
558908
|
567468
|
568076
|
568154