Add configuration to check bad memory usage

Change-Id: I549d2e8a13a69991c7b1655986343ba4d196ad49