• Clemens Backes's avatar
    [inspector][fuzzer] Fix alloc-dealloc-mismatch · eeaf7c86
    Clemens Backes authored
    Asan complains about the alloc-dealloc-mismatch because the startup data
    is allocated via "new[]" in snapshot.cc and deallocated via "delete" in
    inspector-test.cc.
    A more failure-proof fix would be to have {StartupData} manage the
    lifetime of the contained char*, but since this is in an API object, the
    refactoring might be more involved. Since other users also just dealloc
    explicitly via "delete[]", this CL just fixes the issue in
    inspector-test.cc.
    
    R=szuend@chromium.org
    
    Bug: chromium:1142437, v8:11107
    Change-Id: I84438b2f12ce8eb6b653d4861e899a2f003e1227
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2523200
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Reviewed-by: 's avatarSimon Zünd <szuend@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#71045}
    eeaf7c86
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
debugging Loading commit data...
fuzzer Loading commit data...
fuzzilli Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
test262 Loading commit data...
torque Loading commit data...
unittests Loading commit data...
wasm-api-tests Loading commit data...
wasm-js Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
OWNERS Loading commit data...