ASan can also detect other memory challenges such as memory leaks: How to find memory leak inside a C++ code/project? Your unique is suitable as-is, except you'll want to take out the concern mark at the end as it's not a question. Whenever you accessibility an array, put an assert https://messiahecvld.bloggazzo.com/35443125/considerations-to-know-about-stack-ball-unblocked-version