From 83b7b8ec70d9ddd7a04405c583bf63636334bc16 Mon Sep 17 00:00:00 2001 From: Katelyn Gadd Date: Tue, 20 Feb 2024 18:00:43 -0800 Subject: [PATCH] Restore erroneously removed encoding of the argument count in a generic method instantiation --- src/coreclr/vm/zapsig.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/coreclr/vm/zapsig.cpp b/src/coreclr/vm/zapsig.cpp index f0904e6452d0e..577acbf485a2c 100644 --- a/src/coreclr/vm/zapsig.cpp +++ b/src/coreclr/vm/zapsig.cpp @@ -1341,6 +1341,9 @@ BOOL ZapSig::EncodeMethod( else { Instantiation inst = pMethod->GetMethodInstantiation(); + + pSigBuilder->AppendData(inst.GetNumArgs()); + for (DWORD i = 0; i < inst.GetNumArgs(); i++) { TypeHandle t = inst[i];