Merge pull request #4454 from kumpera/allow_sioc_with_managed_impl
authorRodrigo Kumpera <kumpera@users.noreply.github.com>
Thu, 2 Mar 2017 19:45:00 +0000 (14:45 -0500)
committerGitHub <noreply@github.com>
Thu, 2 Mar 2017 19:45:00 +0000 (14:45 -0500)
Allow banned assemblies with LoaderFrom

1  2 
mono/metadata/appdomain.c

index cfc917660e2034ac87d8e2c5f742248fabc86a6a,eca4e4d58e41dc78131118f682f84ea9d18d9226..f92cc949b6ee5160c1931415f97aa874881eb5bf
@@@ -39,6 -39,7 +39,7 @@@
  #include <mono/metadata/domain-internals.h>
  #include "mono/metadata/metadata-internals.h"
  #include <mono/metadata/assembly.h>
+ #include <mono/metadata/assembly-internals.h>
  #include <mono/metadata/exception.h>
  #include <mono/metadata/exception-internals.h>
  #include <mono/metadata/threads.h>
@@@ -49,6 -50,7 +50,6 @@@
  #include <mono/metadata/marshal-internals.h>
  #include <mono/metadata/monitor.h>
  #include <mono/metadata/mono-debug.h>
 -#include <mono/metadata/mono-debug-debugger.h>
  #include <mono/metadata/attach.h>
  #include <mono/metadata/w32file.h>
  #include <mono/metadata/lock-tracer.h>
@@@ -2053,7 -2055,7 +2054,7 @@@ ves_icall_System_Reflection_Assembly_Lo
        if (!is_ok (error))
                goto leave;
        
-       MonoAssembly *ass = mono_assembly_open_full (filename, &status, refOnly);
+       MonoAssembly *ass = mono_assembly_open_a_lot (filename, &status, refOnly, TRUE);
        
        if (!ass) {
                if (status == MONO_IMAGE_IMAGE_INVALID)