I've read a a tip here: http://www.cprogramming.com/tips/showTip.php?tip=183
saying:
Also monitor that the pointers are not overlapping if not pointing to same memory location range.
How can one monitor such thing? Comparing every pointer to each other is obviously silly.
You can't, and you shouldn't constantly. This is probably just a debugging hint for some problem the author once encountered, and maybe useful in embedded systems.
In general, valgrind
helps you more when you have pointer issues than any manual comparison.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With