commit | b1fb01e8b5d0b6e3cf9c806c387c934c959cd783 | [log] [tgz] |
---|---|---|
author | Keith Mok <keithmok@google.com> | Tue Apr 12 20:15:46 2022 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Apr 12 20:15:46 2022 +0000 |
tree | 138ada3af0505c6b6aa2eb3236570a22653b36ad | |
parent | 89ee3e6394eb1b3275393dbbc7e032103136d4aa [diff] | |
parent | 0857f72a75b7719ee0907ea3b8d4400ac5c8fed1 [diff] |
Merge "android_util_Process: fix length checking logic"
diff --git a/core/jni/android_util_Process.cpp b/core/jni/android_util_Process.cpp index 4d8d4db..71b51ff 100644 --- a/core/jni/android_util_Process.cpp +++ b/core/jni/android_util_Process.cpp
@@ -991,7 +991,7 @@ end = i; i++; } else if ((mode&PROC_QUOTES) != 0) { - while (buffer[i] != '"' && i < endIndex) { + while (i < endIndex && buffer[i] != '"') { i++; } end = i;