fix invalid memory hook in Go bindings

This commit is contained in:
Ryan Hileman
2015-08-29 09:42:36 -07:00
parent e2036424c1
commit cb09df3027
3 changed files with 12 additions and 7 deletions

View File

@@ -9,8 +9,8 @@ void hookCode_cgo(uch handle, uint64_t addr, uint32_t size, void *user) {
hookCode(handle, addr, size, user);
}
bool hookMemInvalid_cgo(uch handle, uc_mem_type type, uint64_t addr, int64_t value, void *user) {
return hookMemInvalid(handle, type, addr, value, user);
bool hookMemInvalid_cgo(uch handle, uc_mem_type type, uint64_t addr, int size, int64_t value, void *user) {
return hookMemInvalid(handle, type, addr, size, value, user);
}
void hookMemAccess_cgo(uch handle, uc_mem_type type, uint64_t addr, int size, int64_t value, void *user) {