mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-04 15:09:40 +00:00
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:
parent
393c886c24
commit
7e2c8693b1
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue