mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-12 21:27:41 +02:00
Fix an UB when cil compile error
This commit is contained in:
@ -100,6 +100,11 @@ bool MagiskInit::patch_sepolicy(const char *file) {
|
||||
if (patch_init)
|
||||
sepol = sepolicy::from_split();
|
||||
|
||||
if (!sepol) {
|
||||
LOGE("Cannot load split cil\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
sepol->magisk_rules();
|
||||
|
||||
// Custom rules
|
||||
|
Reference in New Issue
Block a user