You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Address Sanitizer (asan) is a tool used to analyse memory usage to detect undefined behaviour (for example use after free). It has been added to MSVC recently so adding it to the codebase is a good idea.
The text was updated successfully, but these errors were encountered:
This is going to have to wait until version 16.7, which should be close to be released.
16.6 only supports release x86 so we'll wait for 16.7 since they added x64 and debug
I tried to add ASan to the project, but it currently feels a bit rough on the edges. While it is a good tool and it did work almost seemlessly on smaller projects, it has some conflicts in Throne. I did manage to activate it and run tests, but I had to do a bunch of things that I do not want to commit (for example modifying catch2.hpp). It did not find any errors, which is good news.
I will move this task back to the backlog so we can re-evaluate it in the future.
List of conflicts that I found:
ASan currently does not work with /RTC, but there is no clean way of removing the option /RTC. It currently output a warning only in W4, but with /WX it block compilation.
ASan does not support incremental links.
ASan does not support edit and continue.
The worst part is that it causes a bug in catch2 which prevents the unit tests from properly executing.
Context (Environment)
Address Sanitizer (asan) is a tool used to analyse memory usage to detect undefined behaviour (for example use after free). It has been added to MSVC recently so adding it to the codebase is a good idea.
The text was updated successfully, but these errors were encountered: