Update IKVM.Reflection
authorMarek Safar <marek.safar@gmail.com>
Thu, 4 Oct 2012 11:56:00 +0000 (12:56 +0100)
committerMarek Safar <marek.safar@gmail.com>
Thu, 4 Oct 2012 11:58:16 +0000 (12:58 +0100)
mcs/class/IKVM.Reflection/Reader/ModuleReader.cs

index 87286535f53f4f67e21ce79ad2d8d781c9f8ea90..180e9689eefb0de8dff4d6f46d979f456714a3d5 100644 (file)
@@ -144,7 +144,9 @@ namespace IKVM.Reflection.Reader
                                                ReadTables(br);
                                                break;
                                        default:
-                                               throw new BadImageFormatException("Unsupported stream: " + sh.Name);
+                                               // we ignore unknown streams, because the CLR does so too
+                                               // (and some obfuscators add bogus streams)
+                                               break;
                                }
                        }
                }