Add validity checks to containers of bare pointers in IDB and LS
Categories
(Core :: Storage: localStorage & sessionStorage, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: ytausky, Assigned: ytausky)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
We have several containers storing bare pointers to refcounted objects. In the interest of preventing both invalid dereferencing and hanging because of a dangling entry, we should add optional assertions that verify that these pointers get removed before their pointees are destructed.
Comment 1•6 years ago
|
||
Yeah, we need this ASAP.
Assignee | ||
Comment 2•6 years ago
|
||
This commit adds a smart pointer class that verifies that no dangling
pointers remain after the pointee went out of scope. This verification is
opt-in and can be controlled both statically and dynamically by the pointee.
Comment 4•6 years ago
|
||
It would be nice to incorporate patches from this try push:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=725b8386948bb6010f72b6fa53f8e327c4bab9d1
unsafeptr-hash and unsafeptr-idb
unsafeptr-hash needs to be polished, I just quickly created MyHashtable to avoid problems with memmove()
Comment 6•6 years ago
|
||
bugherder |
Description
•