From 75a7c5e2d1f09a4a58e7e1f1f4ef0b0f55a33413 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 19 Feb 2018 19:35:04 +0100 Subject: prog: rework address allocation 1. mmap all memory always, without explicit mmap calls in the program. This makes lots of things much easier and removes lots of code. Makes mmap not a special syscall and allows to fuzz without mmap enabled. 2. Change address assignment algorithm. Current algorithm allocates unmapped addresses too frequently and allows collisions between arguments of a single syscall. The new algorithm analyzes actual allocations in the program and places new arguments at unused locations. --- prog/prio.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'prog/prio.go') diff --git a/prog/prio.go b/prog/prio.go index 832234dde..35eb6e9d9 100644 --- a/prog/prio.go +++ b/prog/prio.go @@ -140,11 +140,6 @@ func (target *Target) calcDynamicPrio(corpus []*Prog) [][]float32 { for _, c1 := range p.Calls { id0 := c0.Meta.ID id1 := c1.Meta.ID - // There are too many mmap's anyway. - if id0 == id1 || c0.Meta == target.MmapSyscall || - c1.Meta == target.MmapSyscall { - continue - } prios[id0][id1] += 1.0 } } -- cgit mrf-deployment