From 3f7e4b9fa1a3c240149e5c0699f32b77a2288dbd Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Mon, 1 Aug 2022 19:09:31 -0700 Subject: [PATCH] Add all memory allocation ucrtbase APIs to the hardbound list (#73190) * Add all memory allocation ucrtbase APIs to the hardbound list Also included basic memory manipulation APIs for a good measure. Fixes #73143 --- .../BuildIntegration/WindowsAPIs.txt | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/src/coreclr/nativeaot/BuildIntegration/WindowsAPIs.txt b/src/coreclr/nativeaot/BuildIntegration/WindowsAPIs.txt index 1240b6ff122fd..bc68e90ec7673 100644 --- a/src/coreclr/nativeaot/BuildIntegration/WindowsAPIs.txt +++ b/src/coreclr/nativeaot/BuildIntegration/WindowsAPIs.txt @@ -2334,9 +2334,35 @@ ws2_32!WSCUnInstallNameSpace ws2_32!WSCUpdateProvider ws2_32!WSCWriteNameSpaceOrder ws2_32!WSCWriteProviderOrder -ucrtbase!_aligned_malloc + +# +# Include all memory allocation APIs from ucrt to ensure that all of them use allocator +# from the same ucrt copy. Also include the frequently used basic memory manipulation APIs. +# ucrtbase!_aligned_free +ucrtbase!_aligned_malloc +ucrtbase!_aligned_msize +ucrtbase!_aligned_offset_malloc +ucrtbase!_aligned_offset_realloc +ucrtbase!_aligned_offset_recalloc ucrtbase!_aligned_realloc +ucrtbase!_aligned_recalloc +ucrtbase!_calloc_base +ucrtbase!_free_base +ucrtbase!_malloc_base +ucrtbase!_msize +ucrtbase!_realloc_base +ucrtbase!_recalloc ucrtbase!calloc ucrtbase!free ucrtbase!malloc +ucrtbase!memchr +ucrtbase!memcmp +ucrtbase!memcpy +ucrtbase!memcpy_s +ucrtbase!memmove +ucrtbase!memmove_s +ucrtbase!memset +ucrtbase!realloc +ucrtbase!wmemcpy_s +ucrtbase!wmemmove_s