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

Commit aa7b5252 authored by Steven Moreland's avatar Steven Moreland
Browse files

Parcel marshall - disallow RPC Parcels

RPC Parcels need to be interpreted in the context of an RPC session.
Otherwise, they don't make sense.

Bug: N/A
Test: N/A
Change-Id: I7a7b83341372faae357927f1b23be181b2f907af
parent 7a2f642b
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -549,6 +549,11 @@ static jbyteArray android_os_Parcel_marshall(JNIEnv* env, jclass clazz, jlong na
       return NULL;
       return NULL;
    }
    }


    if (parcel->isForRpc()) {
        jniThrowException(env, "java/lang/RuntimeException", "Tried to marshall an RPC Parcel.");
        return NULL;
    }

    if (parcel->objectsCount())
    if (parcel->objectsCount())
    {
    {
        jniThrowException(env, "java/lang/RuntimeException",
        jniThrowException(env, "java/lang/RuntimeException",