Files
ladybird/Libraries/LibWeb/IndexedDB
Andreas Kling f6e755506d LibWeb: Check weak pointer liveness in Database::for_key_and_name()
The database map stores GC::Weak<Database> entries. When the GC
collects a Database, the weak pointer goes null but the map entry
remains. The old code dereferenced the weak pointer without checking
liveness, causing a null reference binding (UBSan).

Fix this by checking ptr() before dereferencing, and cleaning up the
stale map entry if the database was collected.
2026-03-08 11:39:41 +01:00
..
2025-01-14 23:46:09 +01:00
2025-08-27 16:13:25 +02:00