1 // 2 // __report_gsfailure.c 3 // 4 // Copyright (c) 2024 Timo Kreuzer 5 // 6 // Implementation of __report_gsfailure. 7 // 8 // SPDX-License-Identifier: MIT 9 // 10 11 #include <intrin.h> 12 #include <ntrtl.h> 13 14 #if defined(_M_IX86) __report_gsfailure(void)15__declspec(noreturn) void __cdecl __report_gsfailure(void) 16 #else 17 __declspec(noreturn) void __cdecl __report_gsfailure(_In_ uintptr_t _StackCookie) 18 #endif 19 { 20 __fastfail(FAST_FAIL_STACK_COOKIE_CHECK_FAILURE); 21 } 22