Загрузка...

Address Sanitizer in C++ (A Tutorial)

In this video, I will show you how to use address sanitizer to debug your C++ code and detect memory leaks, memory corruption bugs, and undefined behavior in your programs. I will also describe how Address Sanitizer works and how to use it in G++ and Bazel.

- Link to the repo used in this video: https://github.com/ourarash/cpp-template.
- A video describing how to use this repo: https://youtu.be/JfOzsBi_irY
- Installing Bazel: https://bazel.build/install
- Installing Graphviz: https://graphviz.org/download/
-----------------------------------------------------
Chapters:

- Introduction 00:00
- Examples of memory misuse 00:55
- What is Address Sanitizer? 1:47
- What kind of bugs does address sanitizer detect? 2:44
- How does address sanitizer work? 3:15
- How can you enable address sanitizer? 5:19
- Enabling address sanitizer in G++: 5:45
- Enabling address sanitizer in Bazel: 6:13
- Examples of bugs that can be detected by address sanitizer: 6:41
- When should you use address sanitizer? 16:58
- Limitations of address sanitizer: 17:19

-----------------------------------------------------
Let me know if you have any questions in the comments!
-----------------------------------------------------
See my other videos on:
- How to use Google Benchmark for C++ Programs: https://youtu.be/9VKR8u9odrA
- Bazel and unit tests with GTest: https://youtu.be/0wMNtl2xDT0
- Debugging in Visual Studio Code for C++: https://youtu.be/-TUogVOs1Qg
- Visual Studio Code, Top Features: https://youtu.be/HebtiBI56kk
-----------------------------------------------------
Keep in touch with me:
https://www.linkedin.com/in/ourarash/
https://www.instagram.com/ourarash

I'm the founder of BitcoinCrazyness app, the Most Advanced Cryptocurrency mobile APP for alerts, Check it out:

http://www.bitcoincrazyness.com/

Видео Address Sanitizer in C++ (A Tutorial) канала arisaif
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки