commit | 6f26d2000e81d3fe56089888602aad3367a474c7 | [log] [tgz] |
---|---|---|
author | Grace Jia <xiaotonj@google.com> | Wed Aug 30 08:49:07 2023 -0700 |
committer | Grace Jia <xiaotonj@google.com> | Wed Aug 30 08:53:36 2023 -0700 |
tree | dd02128866ec832d7c33488ccfbf27c3d1b4b3e7 | |
parent | 23a939e36a992a32007daa9d39d9783b6a6a93cc [diff] |
Avoid array usage in handleConnectionServiceDeath. When we trying to create a new array by using an array size returned from a java Collection, we may get weird NegativeArraySizeException. Instead of create a pending response array, directly use an iterator for the loop to mark connection as failed. Bug: b/298029420 Test: atest CreateConnectionProcessorTest Change-Id: I6ba6b7d7ba12469b1fad3b21531ca8d8f6f7a785