From f280d3d5149b57ae58e35feb18351ed62a8fa7ec Mon Sep 17 00:00:00 2001 From: Sam Bingner Date: Thu, 20 Aug 2020 10:05:08 -1000 Subject: Don't crash on null dylib paths --- Tweak.xm | 1 + 1 file changed, 1 insertion(+) diff --git a/Tweak.xm b/Tweak.xm index 77f7fd7..19d82b1 100644 --- a/Tweak.xm +++ b/Tweak.xm @@ -442,6 +442,7 @@ MSHook(void *, dlopen, const char *path, int mode) { // we probably don't need this whitelist, but it has the nifty benefit of letting Cycript inject // that said, older versions of iOS (before 3.1) will need a special case due to now shared cache + if (path==NULL || (mode&RTLD_NOLOAD)==RTLD_NOLOAD) goto load; for (const char **dylib = dylibs_; *dylib != NULL; ++dylib) { size_t length(strlen(*dylib)); if (strncmp(path, *dylib, length) != 0) -- cgit v1.2.3