I\'m trying to teach myself about buffer overflows and exploitation in C++. I\'m an intermediate C++ guy, at best, so bear with me. I\'ve followed a few tutorials, but here\
Proposed solution to detect NULL pointer and buffer overflow in memcpy, memset, strcpy before hand and print out the location (file:line) where the problem occurs: