r/cpp • u/GamesMaxed • Jun 01 '22
Post-mortem of a long-standing bug in video Game Path Of Exile, which was caused by a stale pointer
https://www.pathofexile.com/forum/view-thread/3277814
202
Upvotes
r/cpp • u/GamesMaxed • Jun 01 '22
52
u/mark_99 Jun 01 '22
TL;DR if your code uses raw, non-owning, non-refcounted pointers to resources which can be dynamically deallocated / unloaded then it's an accident waiting to happen (to be fair this seems to have been largely due to a library they were using).
And/or use a heap checker / sanitizer once in a while.