• Samuel Groß's avatar
    [sandbox] Fix two deserializer issues when sandbox is enabled · 9d3a645b
    Samuel Groß authored
    When the sandbox is enabled, an empty ArrayBuffer does not have a
    nullptr backing store but instead points to a special EmptyBackingStore
    pseudo-object inside the sandbox. This then requires special handling
    during deserialization. This CL fixes two cases where this was not done
    correctly, which caused some crashes when --stress-snapshot is active.
    
    Bug: v8:10391
    Change-Id: I412adace229b979b317864a3e8c12ed4c601b850
    Cq-Include-Trybots: luci.v8.try:v8_linux64_heap_sandbox_dbg_ng,v8_linux_arm64_sim_heap_sandbox_dbg_ng
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3716480Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
    Commit-Queue: Samuel Groß <saelo@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#81297}
    9d3a645b
deserializer.cc 51.1 KB