usb: Prevent iterator invalidation during Promise resolution
This change swaps sets of ScriptPromiseResolvers into local variables in a number of places where it was possible for script to execute during the call to Resolve() or Reject() and modify the set being iterated over, thus invalidating the iterator. Bug: 1106773 Change-Id: Id4eb0cd444a7dbb5de23038ec80f44fee649cfe4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2304538 Auto-Submit: Reilly Grant <reillyg@chromium.org> Commit-Queue: James Hollyer <jameshollyer@chromium.org> Reviewed-by:James Hollyer <jameshollyer@chromium.org> Cr-Commit-Position: refs/heads/master@{#790217}
Showing
Please register or sign in to comment