VC++: Code works in VS2010 and breaks in VS2013
问题 Edit: unlike the case in the question noted in the vote-to-close, the offending code here is CRT code, not mine . Even if it has a problem (which I'm pretty sure it doesn't), I have no way of fixing its source. We have some legacy memory-leak tracing code that uses some CRT internals (nothing too exotic, essentially _CrtMemBlockHeader which is sort-of documented). While trying to migrate from VS2010 to VS2013 the code seems to cause sporadic build failures, and the offending part can be