1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 14:35:07 +00:00
serenity/Userland/Libraries/LibWeb/Crypto
davidot 1d846e5591 LibWeb: Visit internal fields of Crypto in visit_edges
Not visiting the field holding SubtleCrypto in Crypto caused subtle
crashes all over the Value functions, due to accessing SubtleCrypto
after it was garbage collected (and potentially replaced by a new cell).
This meant that the crashes were only appearing in Value::to_boolean,
Value::typeof, etc. Which then held pointer to things that looked like
Shapes, Environments and other non-Object Cells.

To find the actual cause, all pointer used to construct Values were
checked and if a pointer was none of the allowed types, the backtrace
is logged.

Co-authored-by: Luke Wilde <lukew@serenityos.org>
2022-09-12 20:14:58 -04:00
..
Crypto.cpp LibWeb: Visit internal fields of Crypto in visit_edges 2022-09-12 20:14:58 -04:00
Crypto.h LibWeb: Visit internal fields of Crypto in visit_edges 2022-09-12 20:14:58 -04:00
Crypto.idl LibWeb: Add Crypto.randomUUID() 2022-03-30 18:47:53 +02:00
SubtleCrypto.cpp LibWeb: Stop using Bindings::wrap() in a bunch of places 2022-09-06 00:27:09 +02:00
SubtleCrypto.h LibWeb: Make SubtleCrypto GC-allocated 2022-09-06 00:27:09 +02:00
SubtleCrypto.idl LibWeb: Implement SubtleCrypto.digest() 2021-12-14 09:01:06 +01:00