summaryrefslogtreecommitdiff
path: root/src/md
diff options
context:
space:
mode:
authorKoundinya Veluri <kouvel@microsoft.com>2017-04-03 16:35:47 -0700
committerGitHub <noreply@github.com>2017-04-03 16:35:47 -0700
commitcb8cfba3b61f18f81787322f0a2563d118c26b8a (patch)
treeba3a1b43bd4c530efc8f5e97f7494a8bf907d241 /src/md
parent99fd99e5f8821e4c25439bcf1997f9a026dde7bf (diff)
downloadcoreclr-cb8cfba3b61f18f81787322f0a2563d118c26b8a.tar.gz
coreclr-cb8cfba3b61f18f81787322f0a2563d118c26b8a.tar.bz2
coreclr-cb8cfba3b61f18f81787322f0a2563d118c26b8a.zip
Fix InternalsVisibleTo when it references an assembly with some DebuggableAttribute flags (#10664)
Fixes #3541 - Mask out the DebuggableAttribute bits from when comparing assembly spec flags for matching an InternalsVisibleTo reference to an assembly
Diffstat (limited to 'src/md')
-rw-r--r--src/md/compiler/mdvalidator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/md/compiler/mdvalidator.cpp b/src/md/compiler/mdvalidator.cpp
index 0b86738cfb..ce6c14e468 100644
--- a/src/md/compiler/mdvalidator.cpp
+++ b/src/md/compiler/mdvalidator.cpp
@@ -5207,7 +5207,7 @@ HRESULT RegMeta::ValidateAssembly(RID rid)
dwFlags = (CorAssemblyFlags) pMiniMd->getFlagsOfAssembly(pRecord);
// Validate the flags
- invalidAssemblyFlags = dwFlags & (~(afPublicKey | afRetargetable | afPA_FullMask | afEnableJITcompileTracking | afDisableJITcompileOptimizer | afContentType_Mask));
+ invalidAssemblyFlags = dwFlags & (~(afPublicKey | afRetargetable | afPA_FullMask | afDebuggableAttributeMask | afContentType_Mask));
// Validate we only set a legal processor architecture flags
// The processor architecture flags were introduced in CLR v2.0.