We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e96e0a1 + b0a579f commit 1c74365Copy full SHA for 1c74365
core/java/android/net/NetworkStatsHistory.java
@@ -177,6 +177,12 @@ public NetworkStatsHistory(DataInputStream in) throws IOException {
177
throw new ProtocolException("unexpected version: " + version);
178
}
179
180
+
181
+ if (bucketStart.length != bucketCount || rxBytes.length != bucketCount
182
+ || rxPackets.length != bucketCount || txBytes.length != bucketCount
183
+ || txPackets.length != bucketCount || operations.length != bucketCount) {
184
+ throw new ProtocolException("Mismatched history lengths");
185
+ }
186
187
188
public void writeToStream(DataOutputStream out) throws IOException {
0 commit comments