I found a bug in the .NET framework and fixed it by hand-altering the DLL
1–10 of 124 posts
Re: I found a bug in the .NET framework and fixed it by hand-altering the DLL
#2Re: I found a bug in the .NET framework and fixed it by hand-altering the DLL
#3My knowledge of the GAC is out of date but isn't a bit of a security hole that you can replace that DLL?
Re: I found a bug in the .NET framework and fixed it by hand-altering the DLL
#4My knowledge of the GAC is out of date but isn't a bit of a security hole that you can replace that DLL?
So if you can modify the files in the GAC, you're already compromised at that point.
Re: I found a bug in the .NET framework and fixed it by hand-altering the DLL
#5I was also about to tell him to skip all the ildasm stuff and just use the online reference source (referencesource.microsoft.com) ... but that assembly isn't in there. So I guess ildasm was the best option.
Re: I found a bug in the .NET framework and fixed it by hand-altering the DLL
#6My knowledge of the GAC is out of date but isn't a bit of a security hole that you can replace that DLL?
What's maybe surprising is that the C# compiler generated code 'adopts' the types in their hacked expressions library. But the C# compiler, wherever it depends on particular types that need to exist for it to do its thing, has always generally relied on finding those types by -name-, not by -name and assembly strong name-.
For example, the C# 3 compiler understands the calling and declaration syntax of extension methods, but to compile an extension method, it requires an Attribute type - System.Runtime.CompilerServices.ExtensionAttribute - which was only introduced into .NET in v3.5. But if you make an attribute class with that name available to the C# compiler, you can compile code using C#3 extension method syntax against the .NET 2.0 framework libraries.
Re: I found a bug in the .NET framework and fixed it by hand-altering the DLL
#7In most other languages, they'd have forked the source, fixed it, recompiled it for their own uses and submitted a pull request or patch.
I'm a big .NET fan, but the fact that we have to jump through such hoops to find and fix a bug, and then still have near certainty that we're going to have to reapply the patch for many updates to come, well, that's just a bit sad. It feels rather last-century, to be honest. Microsoft could save a lot of double work if they'd just open source .NET and attach a decent process to it. They can still be the Linus. Just consider my patches.
Re: I found a bug in the .NET framework and fixed it by hand-altering the DLL
#8The real news here is that this is considered special. In most other languages, they'd have forked the source, fixed it, recompiled it for their own uses and submitted a pull request or patch. I'm a big .NET fan, but the fact that we have to jump through such hoops to find and fix a bug, and then still have near certainty that we're going to have to reapply the patch for many updates to come, well, that's just a bit…
Re: I found a bug in the .NET framework and fixed it by hand-altering the DLL
#9The real news here is that this is considered special. In most other languages, they'd have forked the source, fixed it, recompiled it for their own uses and submitted a pull request or patch. I'm a big .NET fan, but the fact that we have to jump through such hoops to find and fix a bug, and then still have near certainty that we're going to have to reapply the patch for many updates to come, well, that's just a bit…
I should disclose that I actually work for Microsoft, and still chose the hard way. Fuck the police!
Re: I found a bug in the .NET framework and fixed it by hand-altering the DLL
#10This code is getting to look butt-ugly. It is not a good thing if it continues like this. We already have C++. Don't need another one.