I’m trying to detect “Use after free()” bugs, otherwise known as “Dangling pointers”. I know Valgrind can be used to detect “Use after free” bugs on the *nix platform, but what about windows? What if I don’t have the source? Is there a better program than Valgrind for detecting all dangling pointers in a program? A free and open source would be preferred , but I’ll use a commercial solution if it will get the job done.
I’m trying to detect Use after free() bugs, otherwise known as Dangling pointers. I
Share
The MSVC debug memory allocator already does this. When you get 0xfeeefeee from a pointer dereference you’ve dangled. With some luck that will bomb the program.