Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a2f642b authored by Steven Moreland's avatar Steven Moreland
Browse files

Parcel marshall error explain objects

A kernel binder object for libbinder can either be a binder object
or an FD.

Bug: N/A (from email thread)
Test: N/A
Change-Id: Iaa02595c5859879749f776222eccca52e782cbfb
parent c6350a11
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -549,10 +549,10 @@ static jbyteArray android_os_Parcel_marshall(JNIEnv* env, jclass clazz, jlong na
       return NULL;
    }

    // do not marshall if there are binder objects in the parcel
    if (parcel->objectsCount())
    {
        jniThrowException(env, "java/lang/RuntimeException", "Tried to marshall a Parcel that contained Binder objects.");
        jniThrowException(env, "java/lang/RuntimeException",
                          "Tried to marshall a Parcel that contains objects (binders or FDs).");
        return NULL;
    }