Guard COM exception marshaling under FEATURE_COMINTEROP (#70431)
authorHuo Yaoyuan <huoyaoyuan@hotmail.com>
Wed, 8 Jun 2022 21:58:11 +0000 (05:58 +0800)
committerGitHub <noreply@github.com>
Wed, 8 Jun 2022 21:58:11 +0000 (14:58 -0700)
commit8f481c0ee583db636f60758c3c3fb43dfd57a737
treed20b389fd1d6bb93b3d9eb00e64e9312ebf7bc4d
parent1fe9c0bba15e23b65be007ddf38c43d28b2f9dd2
Guard COM exception marshaling under FEATURE_COMINTEROP (#70431)

* Guard FillVariant under FEATURE_COMINTEROP

* Guard COM exception information under FEATURE_COMINTEROP

* Remove TypeNameBuilder::ToString(BSTR)

* Remove the whole EECOMException type when COM interop is disabled

* Guard more ExceptionData usage under FEATURE_COMINTEROP

* Guard BSTRHolder under FEATURE_COMINTEROP

* Remove Unix BSTR simulation in palrt

* Add guard to COMException::GetMessage
18 files changed:
src/coreclr/dlls/mscordac/mscordac_unixexports.src
src/coreclr/inc/ex.h
src/coreclr/inc/utilcode.h
src/coreclr/md/runtime/mdinternalro.cpp
src/coreclr/pal/inc/rt/palrt.h
src/coreclr/palrt/CMakeLists.txt
src/coreclr/palrt/bstr.cpp [deleted file]
src/coreclr/tools/metainfo/mdinfo.cpp
src/coreclr/utilcode/comex.cpp
src/coreclr/vm/clrex.cpp
src/coreclr/vm/clrex.h
src/coreclr/vm/comutilnative.cpp
src/coreclr/vm/comutilnative.h
src/coreclr/vm/excep.cpp
src/coreclr/vm/interoputil.cpp
src/coreclr/vm/interoputil.h
src/coreclr/vm/typestring.cpp
src/coreclr/vm/typestring.h