Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
It's not safe to Load InitType with type name only #382
Comments
|
that's a fair point. this is not an issue in practice, because the name of the type returned by |
|
Yes, normally it's safe, while when building in Unity3D and enable |
Sorry, this issue is for ClojureCLR (https://github.com/arcadia-unity/clojure-clr), but that project does not accept issue, so i write it here.
When ClojureCLR invoke a clojure code, it iterate over all assemblies and find the type with
initClassNamematched. source code here:But it's not safe, as there may be another type have a same name , and would be wrongly loaded.
To prevent this situation, we could double check using excepted assembly name, like this: