]> git.saurik.com Git - cycript.git/commitdiff
Fixed a NULL-pointer dereference on anonymous structures.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 19 Nov 2009 08:11:05 +0000 (08:11 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 19 Nov 2009 08:11:05 +0000 (08:11 +0000)
Execute.cpp

index e43cce6e6b15c777db847a90f1e68accca7e2b88..dfe0600d0a2e0bf79dfc1ba74d4dd68c7f3d8938 100644 (file)
@@ -177,6 +177,7 @@ void Structor_(apr_pool_t *pool, sig::Type *&type) {
         type->primitive == sig::pointer_P &&
         type->data.data.type != NULL &&
         type->data.data.type->primitive == sig::struct_P &&
+        type->data.data.type->name != NULL &&
         strcmp(type->data.data.type->name, "_objc_class") == 0
     ) {
         type->primitive = sig::typename_P;