mirror of
https://github.com/reactos/reactos.git
synced 2025-05-31 23:18:39 +00:00
[UCRT:VCRUNTIME] Implement __report_gsfailure()
This commit is contained in:
parent
5dcd1d1714
commit
b0f3e623b7
2 changed files with 22 additions and 0 deletions
21
sdk/lib/ucrt/vcruntime/__report_gsfailure.c
Normal file
21
sdk/lib/ucrt/vcruntime/__report_gsfailure.c
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
//
|
||||||
|
// __report_gsfailure.c
|
||||||
|
//
|
||||||
|
// Copyright (c) 2024 Timo Kreuzer
|
||||||
|
//
|
||||||
|
// Implementation of __report_gsfailure.
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
//
|
||||||
|
|
||||||
|
#include <intrin.h>
|
||||||
|
#include <ntrtl.h>
|
||||||
|
|
||||||
|
#if defined(_M_IX86)
|
||||||
|
__declspec(noreturn) void __cdecl __report_gsfailure(void)
|
||||||
|
#else
|
||||||
|
__declspec(noreturn) void __cdecl __report_gsfailure(_In_ uintptr_t _StackCookie)
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
__fastfail(FAST_FAIL_STACK_COOKIE_CHECK_FAILURE);
|
||||||
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
list(APPEND UCRT_VCRUNTIME_SOURCES
|
list(APPEND UCRT_VCRUNTIME_SOURCES
|
||||||
|
vcruntime/__report_gsfailure.c
|
||||||
vcruntime/__security_init_cookie.c
|
vcruntime/__security_init_cookie.c
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue