Skip to content

Commit 0327254

Browse files
committed
Block runtime marshaling for calli
1 parent ab8839b commit 0327254

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/coreclr/vm/dllimport.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3672,6 +3672,11 @@ static void CreateNDirectStubWorker(StubState* pss,
36723672
COMPlusThrow(kMarshalDirectiveException, IDS_EE_NDIRECT_DISABLEDMARSHAL_PRESERVESIG);
36733673
}
36743674

3675+
if (runtimeMarshallingEnabled && SF_IsCALLIStub(dwStubFlags) && NDirect::MarshalingRequired(pMD))
3676+
{
3677+
COMPlusThrow(kMarshalDirectiveException, IDS_EE_NDIRECT_UNSUPPORTED_SIG);
3678+
}
3679+
36753680
int numArgs = msig.NumFixedArgs();
36763681

36773682
// thiscall must have at least one parameter (the "this")

0 commit comments

Comments
 (0)