projects
/
cycript.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b5f88f
)
Do not allow JavaMethod calls on non-Java objects.
author
Jay Freeman (saurik)
<saurik@saurik.com>
Tue, 5 Jan 2016 09:07:44 +0000
(
01:07
-0800)
committer
Jay Freeman (saurik)
<saurik@saurik.com>
Tue, 5 Jan 2016 09:07:44 +0000
(
01:07
-0800)
Java/Execute.cpp
patch
|
blob
|
blame
|
history
diff --git
a/Java/Execute.cpp
b/Java/Execute.cpp
index f382bc94c32e454d6977c505ffadc25cc225139d..4ea8a51a7c29a365ada32f37f4760c8514d08784 100644
(file)
--- a/
Java/Execute.cpp
+++ b/
Java/Execute.cpp
@@
-942,6
+942,7
@@
static bool CYCastJavaArguments(const CYJavaFrame &frame, const CYJavaShorty &sh
static JSValueRef JavaMethod_callAsFunction(JSContextRef context, JSObjectRef object, JSObjectRef _this, size_t count, const JSValueRef arguments[], JSValueRef *exception) { CYTry {
auto internal(CYJavaMethod::Get(context, object));
CYJavaObject *self(CYGetJavaObject(context, _this));
+ _assert(self != NULL);
CYJavaEnv jni(self->value_);
CYJavaSignature bound(count);