mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 17:18:16 +00:00
Critical bug fix! Reset allocated memory
This bus has been there for a long time. memset the newly allocated memory to prevent issues.
This commit is contained in:
parent
76eb629fc2
commit
10bf497cda
@ -60,6 +60,7 @@ static int add_irule(int s, int t, int c, int p, int effect, int not) {
|
||||
|
||||
if (av == NULL) {
|
||||
av = cmalloc(sizeof(*av));
|
||||
memset(av, 0, sizeof(*av));
|
||||
av->data |= 1U << (p - 1);
|
||||
int ret = avtab_insert(&policy->te_avtab, &key, av);
|
||||
if (ret) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user