LibJS: Initialize fields of on-stack buf structure

We pass all fields of `buf` to `add_possible_value()`, and at least
on Linux `setjmp()` does not initialize all fields.

Fixes #24560.
This commit is contained in:
Nico Weber 2024-06-24 17:03:05 +02:00
parent 393c886c24
commit 7e2c8693b1

View file

@ -332,7 +332,7 @@ NO_SANITIZE_ADDRESS void Heap::gather_conservative_roots(HashMap<Cell*, HeapRoot
dbgln_if(HEAP_DEBUG, "gather_conservative_roots:");
jmp_buf buf;
jmp_buf buf {};
setjmp(buf);
HashMap<FlatPtr, HeapRoot> possible_pointers;