From 95c964673def798329bc4faa28e8d01c47c3483f Mon Sep 17 00:00:00 2001 From: LoveSy Date: Tue, 13 Apr 2021 06:12:02 +0800 Subject: [PATCH] Initialized `_root` properly Fix #4204 `_root` is uninitialized for non-root nodes. And it will cause `module_node::mount` fail because it uses `root()`. Once the bug is triggered, signal 11 is received but Magisk catch all signals and therefore stuck forever. --- native/jni/core/module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/jni/core/module.cpp b/native/jni/core/module.cpp index 30eb1b797..117aba458 100644 --- a/native/jni/core/module.cpp +++ b/native/jni/core/module.cpp @@ -224,7 +224,7 @@ protected: map_type children; // Root node lookup cache - root_node *_root; + root_node *_root = nullptr; }; class root_node : public dir_node {