tags:

views:

80

answers:

2

Hi, I have a legacy C++ code which is ported to Android. When calling free on strings, a random crash is occurring. Crash is observed in random places. Is there a tool which can be used to check the memory overruns?

+3  A: 

If it's due to an underlying bug that only happens to cause issues on Android, can you just run it on the legacy platform using Valgrind?

Oli Charlesworth
Can Valgrind be run as static analyzer as it cannot be used inside Android?
Vinay
I don't know if Valgrind has been ported to Android. What I'm suggesting is that presumably this "legacy" application used to run on some other platform. Does Valgrind support that old platform?
Oli Charlesworth
Yes, it is supported
Vinay
+2  A: 

You could try my non-intrusive heap debugger.

FredOverflow