diff options
author | Jan Vorlicek <janvorli@microsoft.com> | 2016-11-21 16:22:45 +0100 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2016-11-21 07:22:45 -0800 |
commit | 716cb7ea87e40abb4b106df55af7ff4666170296 (patch) | |
tree | 512ecfde277f7257c8f883715ba0b2596e415db5 /src/pal/tests/palsuite/paltestlist_to_be_reviewed.txt | |
parent | 3c3ab1a269a48b81c2a57e55da76b7e5f0f24eb9 (diff) | |
download | coreclr-716cb7ea87e40abb4b106df55af7ff4666170296.tar.gz coreclr-716cb7ea87e40abb4b106df55af7ff4666170296.tar.bz2 coreclr-716cb7ea87e40abb4b106df55af7ff4666170296.zip |
Remove unsafe banned functions (#8162)
This change removes _snwprintf, _snprintf and _vsnwprintf usage from CoreCLR and
their implementations from PAL.
PAL exposes their secure variants instead and CoreCLR now uses those instead.
I have also removed the StringCchPrintfA/W, StringCchVPrintfA/W, StringCbVPrintfA/W,
StringCbPrintfA/W, StringCbPrintfExA/W, StringCchVPrintfExA/W, StringCbVPrintfExA/W
and StringCchPrintfExA/W replaced their usage by the secure variants of the sprintf
functions, since they were used at only few places and implementing all of the variants
using the secure sprintf variants would be a hassle.
I also needed to fix a missing support for size modifiers for %p formatting character
and for wide characters / strings in the secure sprintf functions that was revealed
by the PAL tests.
I have also removed a bunch of PAL tests that were using %n formatting character which
was not implemented since it is considered unsafe and translated PAL tests that were using
the removed functions to use the safe variants of those.
Diffstat (limited to 'src/pal/tests/palsuite/paltestlist_to_be_reviewed.txt')
-rw-r--r-- | src/pal/tests/palsuite/paltestlist_to_be_reviewed.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pal/tests/palsuite/paltestlist_to_be_reviewed.txt b/src/pal/tests/palsuite/paltestlist_to_be_reviewed.txt index 37b81d2060..0e12ccbf55 100644 --- a/src/pal/tests/palsuite/paltestlist_to_be_reviewed.txt +++ b/src/pal/tests/palsuite/paltestlist_to_be_reviewed.txt @@ -26,10 +26,10 @@ c_runtime/_ecvt/test1/paltest_ecvt_test1 c_runtime/_gcvt/test1/paltest_gcvt_test1 c_runtime/_gcvt/test2/paltest_gcvt_test2 c_runtime/_getw/test1/paltest_getw_test1 -c_runtime/_snwprintf/test2/paltest_snwprintf_test2 -c_runtime/_snwprintf/test7/paltest_snwprintf_test7 -c_runtime/_vsnwprintf/test2/paltest_vsnwprintf_test2 -c_runtime/_vsnwprintf/test7/paltest_vsnwprintf_test7 +c_runtime/_snwprintf_s/test2/paltest_snwprintf_test2 +c_runtime/_snwprintf_s/test7/paltest_snwprintf_test7 +c_runtime/_vsnwprintf_s/test2/paltest_vsnwprintf_test2 +c_runtime/_vsnwprintf_s/test7/paltest_vsnwprintf_test7 debug_api/DebugBreak/test1/paltest_debugbreak_test1 debug_api/OutputDebugStringA/test1/paltest_outputdebugstringa_test1 debug_api/WriteProcessMemory/test1/paltest_writeprocessmemory_test1 |