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

Commit 81977b89 authored by Daichi Hirono's avatar Daichi Hirono Committed by Garfield Tan
Browse files

Fix method sinature of FuseAppLoop JNI code

The file size passed to replyLookup and replyGetAttr needed to be jlong,
but they were jint before the fix.

Bug: 63543158
Test: Transfer 4GB+ files through ProxyFileDescriptor

Change-Id: Idaf27538e067854a25ae413651d8f83f0df3f387
(cherry picked from commit d2229a65)
parent 0a2ada54
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -142,14 +142,14 @@ void com_android_internal_os_FuseAppLoop_replyOpen(
}

void com_android_internal_os_FuseAppLoop_replyLookup(
        JNIEnv* env, jobject self, jlong ptr, jlong unique, jlong inode, jint size) {
        JNIEnv* env, jobject self, jlong ptr, jlong unique, jlong inode, jlong size) {
    if (!reinterpret_cast<fuse::FuseAppLoop*>(ptr)->ReplyLookup(unique, inode, size)) {
        reinterpret_cast<fuse::FuseAppLoop*>(ptr)->Break();
    }
}

void com_android_internal_os_FuseAppLoop_replyGetAttr(
        JNIEnv* env, jobject self, jlong ptr, jlong unique, jlong inode, jint size) {
        JNIEnv* env, jobject self, jlong ptr, jlong unique, jlong inode, jlong size) {
    if (!reinterpret_cast<fuse::FuseAppLoop*>(ptr)->ReplyGetAttr(
            unique, inode, size, S_IFREG | 0777)) {
        reinterpret_cast<fuse::FuseAppLoop*>(ptr)->Break();