svn commit: r454008 - branches/2017Q4/security/sandsifter
Jan Beich
jbeich at FreeBSD.org
Sat Nov 11 23:17:57 UTC 2017
Author: jbeich
Date: Sat Nov 11 23:17:55 2017
New Revision: 454008
URL: https://svnweb.freebsd.org/changeset/ports/454008
Log:
MFH: r454007
security/sandsifter: fix typo to block non-x86 archs
cc -O2 -pipe -isystem /usr/local/include -fno-strict-aliasing -c injector.c -o injector.o -Wall
injector.c:338:93: warning: excess elements in array initializer
.start={.bytes={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, .len=0},
^~~~
injector.c:339:91: warning: excess elements in array initializer
.end={.bytes={0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}, .len=0},
^~~~
injector.c:870:32: error: no member named 'mc_eip' in 'struct __mcontext'
((ucontext_t*)p)->uc_mcontext.IP+=UD2_SIZE;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
injector.c:95:14: note: expanded from macro 'IP'
# define IP mc_eip
^
injector.c:883:30: error: no member named 'mc_eip' in 'struct __mcontext'
(uintptr_t)uc->uc_mcontext.IP-(uintptr_t)packet-preamble_length;
~~~~~~~~~~~~~~~ ^
injector.c:95:14: note: expanded from macro 'IP'
# define IP mc_eip
^
injector.c:905:18: error: no member named 'mc_eip' in 'struct __mcontext'
uc->uc_mcontext.IP=(uintptr_t)&resume;
~~~~~~~~~~~~~~~ ^
injector.c:95:14: note: expanded from macro 'IP'
# define IP mc_eip
^
injector.c:906:18: error: no member named 'mc_eflags' in 'struct __mcontext'; did you mean 'mc_flags'?
uc->uc_mcontext.EFL&=~TF;
^~~
mc_flags
injector.c:96:15: note: expanded from macro 'EFL'
# define EFL mc_eflags
^
/usr/include/machine/ucontext.h:56:7: note: 'mc_flags' declared here
int mc_flags;
^
2 warnings and 4 errors generated.
Reported by: pkg-fallout (aarch64)
Approved by: ports-secteam blanket
Modified:
branches/2017Q4/security/sandsifter/Makefile
Directory Properties:
branches/2017Q4/ (props changed)
Modified: branches/2017Q4/security/sandsifter/Makefile
==============================================================================
--- branches/2017Q4/security/sandsifter/Makefile Sat Nov 11 23:16:14 2017 (r454007)
+++ branches/2017Q4/security/sandsifter/Makefile Sat Nov 11 23:17:55 2017 (r454008)
@@ -12,8 +12,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}capstone>0:devel/p
USES= gmake python localbase shebangfix
-ONLY_FOR_ARCH= amd64 i386
-ONLY_FOR_ARCH_REASON=Designed for x86
+ONLY_FOR_ARCHS= amd64 i386
+ONLY_FOR_ARCHS_REASON=Designed for x86
USE_GITHUB= yes
GH_ACCOUNT= xoreaxeaxeax
More information about the svn-ports-branches
mailing list