
I was unable to repro the crash manually, but was able to simulate it in a test. It's not clear how this scenario can happen in production but the resulting crash in the test has the same stack as the reported crash. Fixed: b/331238593 Test: Added a new test that crashes without the fix. Change-Id: I746a27b708a53b4458a3001ff1cba0b4793d8c3d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5401917 Reviewed-by: Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Ahmed Fakhry <afakhry@chromium.org> Cr-Commit-Position: refs/heads/main@{#1279348}