Merge "StrictMode: fix deserialization of ViolationInfo on large stacks" am: 29e0b6e789

am: af588a31bc

* commit 'af588a31bc62b791014b3cc4e655107e9446e3d0':
  StrictMode: fix deserialization of ViolationInfo on large stacks
This commit is contained in:
Jeff Sharkey
2015-12-03 17:13:43 +00:00
committed by android-build-merger

View File

@@ -1931,9 +1931,9 @@ public final class StrictMode {
// so we'll report it and bail on all of the current strict mode violations
// we currently are maintaining for this thread.
// First, drain the remaining violations from the parcel.
while (i < numViolations) {
i++; // Skip the current entry.
for (; i < numViolations; i++) {
info = new ViolationInfo(p, !currentlyGathering);
i++;
}
// Next clear out all gathered violations.
clearGatheredViolations();