mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-24 08:30:21 +00:00
AK: Disallow creating NonnullRawPtr
s from r-value references
This would always result in a use-after-free.
This commit is contained in:
parent
db0f019a70
commit
1a03a27c86
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ public:
|
|||
using ValueType = T;
|
||||
|
||||
NonnullRawPtr() = delete;
|
||||
NonnullRawPtr(T const&&) = delete;
|
||||
|
||||
NonnullRawPtr(T& other)
|
||||
: m_ptr(&other)
|
||||
|
|
Loading…
Reference in a new issue