diff --git a/native/jni/magiskhide/proc_monitor.cpp b/native/jni/magiskhide/proc_monitor.cpp index 93c1cabb4..a6b064258 100644 --- a/native/jni/magiskhide/proc_monitor.cpp +++ b/native/jni/magiskhide/proc_monitor.cpp @@ -106,6 +106,8 @@ static bool parse_packages_xml(string_view s) { string_view pkg; for (char *tok = start; *tok;) { char *eql = strchr(tok, '='); + if (eql == nullptr) + break; *eql = '\0'; /* Terminate '=' */ string_view key(tok, eql - tok); eql += 2; /* Skip '="' */