NullReferenceException accessing out of bounds gac_paths #658
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
https://github.com/jbevain/cecil/blob/master/Mono.Cecil/BaseAssemblyResolver.cs#L369 hardcodes "2" as the number of entries in
gac_paths, but if you're doing something as dumb as I'm doing, inGetGacPathshere https://github.com/jbevain/cecil/blob/master/Mono.Cecil/BaseAssemblyResolver.cs#L291 if you're not on mono AND you don't have theWINDIRenv var, you'll end up with an empty gac paths collection and blow up in the lookup.SHAME. SHAME. SHAME. 🔔
I know you don't mean that for me, but if you knew what I was doing, you would