Commit 95c96467 authored by LoveSy's avatar LoveSy Committed by John Wu

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.
parent 94ec11db
...@@ -224,7 +224,7 @@ protected: ...@@ -224,7 +224,7 @@ protected:
map_type children; map_type children;
// Root node lookup cache // Root node lookup cache
root_node *_root; root_node *_root = nullptr;
}; };
class root_node : public dir_node { class root_node : public dir_node {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment