Closed cwong-scw closed 3 years ago
dfkjer oa j aewrfij use-after-free fgsrefg
Dereferencing pointers to objects that have already been freed opens the door to execution of arbitrary code. Attackers may be able to insert instructions at the freed memory location in order to trigger the exploit when the pointer is used after the memory has been freed.
There are many ways this vulnerability may appear in code. Garbage collection, weak pointers, duplicate raw pointers, improperly written wrapper classes. The bottom line is to check the life time management of every memory or object reference and ensure that if memory is released then any reference or pointer falls out of scope or initialised to null.
abcdef
abcdef
abcdef
abcdef
abcdef
abcdef
abcdef
abcdef
abcdef
abcdef
dfasfeawe