I have an application (C++) where I'd like to add the facility to track memory access errors (like access to already freed memory, read or write beyond the bounds of a memory allocation etc.) and handle these errors at runtime (something like try{}catch() blocks).
Are there any ready libraries to handle this?