[UCRT:VCRUNTIME] Implement __report_rangecheckfailure()

This commit is contained in:
Timo Kreuzer 2025-01-17 11:43:24 +02:00
parent b0f3e623b7
commit 4d80956566
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,17 @@
//
// __report_rangecheckfailure.c
//
// Copyright (c) 2024 Timo Kreuzer
//
// Implementation of __report_rangecheckfailure.
//
// SPDX-License-Identifier: MIT
//
#include <intrin.h>
#include <ntrtl.h>
__declspec(noreturn) void __cdecl __report_rangecheckfailure(void)
{
__fastfail(FAST_FAIL_RANGE_CHECK_FAILURE);
}

View file

@ -1,6 +1,7 @@
list(APPEND UCRT_VCRUNTIME_SOURCES
vcruntime/__report_gsfailure.c
vcruntime/__report_rangecheckfailure.c
vcruntime/__security_init_cookie.c
)