cl.exe version: Microsoft (R) C/C++ Optimizing Compiler Version 17.00.51106.1 for x86
Visual Studio Professional 2012 Version 11.0.51106.01 Update 1
When using #pragma intrinsic to use intrinsic version of some math functions (eg fabs, sqrt, etc), the compiler will generate code that produces stack corruption caught when compiling with /RTC1. This appears to only happen in 32-bit and not 64-bit, and this same code has worked in VS2010, VS2008, and possibly earlier so I believe this behavior is new to VS2012.
The issue can be worked around by 1) not using the intrinsic version of certain math functions, 2) using #pragma function to force the function version of one or more math functions, or 3) avoid calling certain intrinsic math functions in succession.