Skip to content

Commit

Permalink
Improve some stuff in weightBufs
Browse files Browse the repository at this point in the history
  • Loading branch information
opa334 committed Jun 12, 2024
1 parent 535e263 commit 482a702
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Application/Dopamine/Exploits/weightBufs/exploit/exploit.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#else

#define MAX_PROGRAMS 5
#define IOSURFACE_OBJ_SIZE 0x430
#define IOSURFACE_OBJ_SIZE 0x8
#define MAX_SHMEMS 0x2000

#endif /* TARGET_OS_OSX */
Expand Down
3 changes: 2 additions & 1 deletion Application/Dopamine/Exploits/weightBufs/exploit/exploit.m
Original file line number Diff line number Diff line change
Expand Up @@ -1154,9 +1154,10 @@ bool get_target_surface(u64 *kaddr_target)
printf("[+] Found a matching surface-id=0x%04x IOSurface=0x%llx ! \n",
matched.surface_id,
matched.IOSurface_loc);
break;
}
}
/* if(matched.surface_id) break; */
if(matched.surface_id) break;
}

/* assert(matched.surface_id && "Unable to find a suitable IOSurface"); */
Expand Down

0 comments on commit 482a702

Please sign in to comment.