[vm, service] Fix out-of-bounds access when processing requestHeapSnapshot's arguments.

As detected by the ASAN bots.

Change-Id: Ia10ad883afe886d573f0fa32c2096f9e0ac07083
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113757
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>

https://dart.googlesource.com/sdk/+/f37fdef1c2d1b5e08a64cdc4909091764094c3b7
1 file changed
tree: d1b68cdfa643097e0df70b69a156ae4d62689d31
  1. commits.json