Archive 17/01/2023.

Interesting talk about C++ analysis tools

Enhex

[video]https://www.youtube.com/watch?v=JSjoCisIHcM[/video]
(Originally from Microsoft’s Channel 9: channel9.msdn.com/Events/GoingN … -s-Dragons)

github.com/google/sanitizers

Anyone tried these tools?

sabotage3d

I have been using AddressSanitizer it is really useful. Now it is part of Xcode as well.

Enhex

Is it available for Windows?

sabotage3d

It should work you need to compile Clang and LLVM with address-sanizier enabled.
It is part of GCC 4.8 now also there might be ready binaries but I followed this steps for OSX.

I followed this guide: https://github.com/google/sanitizers/wiki/AddressSanitizerHowToBuild
This is for LLVM might be out of date: http://homes.cs.washington.edu/~bholt/posts/building-llvm.html

After that you need to compile your application with this flag: -fsanitize=address
And you need to run your application like this in my case it is IOS app.

Enhex

It doesn’t seem to build the sanitizer libs on window and give an error saying they’re missing.
A workaround could be using a virtual machine with Linux.

Well, at least Clang-Format works.

sabotage3d

What about GCC 4.8 through cygwin?

Enhex

Too much hassle and mess.
Might as well use it with LLVM/Clang for Linux builds, when I’ll need them.