mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
AK: Disallow creating NonnullRawPtrs from r-value references
This would always result in a use-after-free.
This commit is contained in:
parent
1ddc4050f7
commit
b7e22f0916
|
|
@ -21,6 +21,7 @@ public:
|
|||
using ValueType = T;
|
||||
|
||||
NonnullRawPtr() = delete;
|
||||
NonnullRawPtr(T const&&) = delete;
|
||||
|
||||
NonnullRawPtr(T& other)
|
||||
: m_ptr(&other)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user