mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-26 00:07:38 +00:00
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.
This commit is contained in:
parent
94ec11db58
commit
95c964673d
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user