Merge "android_util_Process: fix length checking logic"

This commit is contained in:
Keith Mok
2022-04-12 20:15:46 +00:00
committed by Gerrit Code Review

View File

@@ -991,7 +991,7 @@ jboolean android_os_Process_parseProcLineArray(JNIEnv* env, jobject clazz,
end = i;
i++;
} else if ((mode&PROC_QUOTES) != 0) {
while (buffer[i] != '"' && i < endIndex) {
while (i < endIndex && buffer[i] != '"') {
i++;
}
end = i;