Date: Sat, 11 Nov 2017 23:16:14 +0000 (UTC) From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r454007 - head/security/sandsifter Message-ID: <201711112316.vABNGENX070484@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jbeich Date: Sat Nov 11 23:16:14 2017 New Revision: 454007 URL: https://svnweb.freebsd.org/changeset/ports/454007 Log: 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) Modified: head/security/sandsifter/Makefile (contents, props changed) Modified: head/security/sandsifter/Makefile ============================================================================== --- head/security/sandsifter/Makefile Sat Nov 11 22:04:15 2017 (r454006) +++ head/security/sandsifter/Makefile Sat Nov 11 23:16:14 2017 (r454007) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711112316.vABNGENX070484>