Пример #1
0
func AbiInit(u models.Usercorn, args, env []string, auxv []byte, syscall func(models.Usercorn)) error {
	u.HookAdd(uc.HOOK_INSN, func(_ uc.Unicorn) {
		syscall(u)
	}, uc.X86_INS_SYSCALL)
	return u.PosixInit(args, env, auxv)
}
Пример #2
0
func CgcInit(u models.Usercorn, args, env []string) error {
	return u.PosixInit(args, env, nil)
}