Commit 1b4f80f7 authored by George Hotz's avatar George Hotz

no hooks required to crash

parent 4dd42beb
...@@ -5,6 +5,8 @@ import ( ...@@ -5,6 +5,8 @@ import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"testing" "testing"
uc "github.com/unicorn-engine/unicorn/bindings/go/unicorn"
) )
func TestUnicornCrash(t *testing.T) { func TestUnicornCrash(t *testing.T) {
...@@ -12,7 +14,8 @@ func TestUnicornCrash(t *testing.T) { ...@@ -12,7 +14,8 @@ func TestUnicornCrash(t *testing.T) {
ram := make(map[uint32](uint32)) ram := make(map[uint32](uint32))
root := "/tmp/cannon/0_13284469" root := "/tmp/cannon/0_13284469"
mu := GetHookedUnicorn(root, ram, nil) mu, err := uc.NewUnicorn(uc.ARCH_MIPS, uc.MODE_32|uc.MODE_BIG_ENDIAN)
check(err)
// program // program
dat, _ := ioutil.ReadFile(fn) dat, _ := ioutil.ReadFile(fn)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment