From 80d43738f1e4c648ccfc4599e17dc8ba455fe1ea Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 14 Mar 2020 16:42:00 +0100 Subject: prog: rename target.SanitizeCall to Neutralize We will need a wrapper for target.SanitizeCall that will do more than just calling the target-provided function. To avoid confusion and potential mistakes, give the target function and prog function different names. Prog package will continue to call this "sanitize", which will include target's "neutralize" + more. Also refactor API a bit: we need a helper function that sanitizes the whole program because that's needed most of the time. Fixes #477 Fixes #502 --- sys/trusty/init.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'sys/trusty') diff --git a/sys/trusty/init.go b/sys/trusty/init.go index 5f5335566..d437b5d3f 100644 --- a/sys/trusty/init.go +++ b/sys/trusty/init.go @@ -8,14 +8,6 @@ import ( "github.com/google/syzkaller/sys/targets" ) -type arch struct { -} - func InitTarget(target *prog.Target) { - arch := &arch{} target.MakeMmap = targets.MakeSyzMmap(target) - target.SanitizeCall = arch.sanitizeCall -} - -func (arch *arch) sanitizeCall(c *prog.Call) { } -- cgit mrf-deployment