Fix UAF in SelectType
This fixes the UAF detected by ClusterFuzz in [1], caused by [2]. The test case added here is a minimized version of the clusterfuzz case, and I verified that it crashes (ASAN UAF) before this patch and no longer crashes after. [1] https://clusterfuzz.com/testcase-detail/6224868955193344 [2] https://chromium-review.googlesource.com/c/chromium/src/+/1912682 Fixed: 1102408 Change-Id: Ieb6a9582ff5b9676596048920bbcff881fdc2eb2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2283901 Commit-Queue: Mason Freed <masonfreed@chromium.org> Auto-Submit: Mason Freed <masonfreed@chromium.org> Reviewed-by:Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#785970}
Showing
Please register or sign in to comment