char buf[10]; for (int i = 0; i < 100; i++) { buf[i] = 'X'; }You can disable the check by turning off the /gs option. But, obviously, fixing he overflow is a much better approach.
Programming Tips - Visual Studio: Program crashes at line __fastfail(FAST_FAIL_STACK_COOKIE_CHECK_FAILURE);
Date: 2024apr25
Product: MSVC, Microsoft Visual Studio
Language: C/C++
Q. Visual Studio: Program crashes at line __fastfail(FAST_FAIL_STACK_COOKIE_CHECK_FAILURE);
A. This is almost certainly caused by an overflow of a local variable.
eg