Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kernel: fix null pointer dereference for some case #1075

Merged
merged 2 commits into from
Oct 23, 2023
Merged

kernel: fix null pointer dereference for some case #1075

merged 2 commits into from
Oct 23, 2023

Conversation

qwerty472123
Copy link
Contributor

#973 __never_use_envp 被改名为 envp 并使用。

这导致 GKI 版本一旦代码运行到 213 行(或许只有 WSA 等类似情况会跑到这?),就会触发一个空指针解引用。

此PR意在修复此问题,且已在WSA上测试。

@tiann
Copy link
Owner

tiann commented Oct 23, 2023

这个 bug 也会在同时安装了 Magisk 和 KernelSU 的情况下触发...因为 Magisk 会自己造一个 /init

@qwerty472123 qwerty472123 changed the title kernel: fix null pointer dereference for WSA case kernel: fix null pointer dereference for some case Oct 23, 2023
@tiann tiann merged commit 1b67c1b into tiann:main Oct 23, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants