News for hackers. Stuff that matters.
Re:Microsoft Has Manually Patched Their Equation Editor Exec... by nicktelford on Friday November 17, 2017 @06:35AM (#15721137)
There's only two reasons I can think of why they'd patch the binary directly: either they've lost the source-code, or they no longer have an environment they can build it in.
Re:Microsoft Has Manually Patched Their Equation Editor Exec... by dtech on Friday November 17, 2017 @06:41AM (#15721180)
Another reason could be that it has dependencies that link to specific addresses in the exe. It's very peculiar that they made the effort to keep all the original adresses.
Re:Microsoft Has Manually Patched Their Equation Editor Exec... by nostoc on Friday November 17, 2017 @09:18AM (#15722119)
It's not an effort, it's probably a side effect of simply patching the binary.

If you can't rebuild it, you have to manually edit it, and when you do that you can't really change the addresses, not without a lot of headache.

Re:Microsoft Has Manually Patched Their Equation Editor Exec... by ajnin on Friday November 17, 2017 @09:08AM (#15722022)
It's keeping the adresses that requires the least effort, changing them would have implied to also change all calls and jumps in the rest of the code, which could mean a very large number of addresses to change.
Re:Microsoft Has Manually Patched Their Equation Editor Exec... by breakingcups on Friday November 17, 2017 @07:04AM (#15721307)
That's a really good point.
Re:Microsoft Has Manually Patched Their Equation Editor Exec... by bearbearbear on Friday November 17, 2017 @07:34AM (#15721467)
The most likely reason is there's a heavy handed government agency that relies on all the base addresses to be the same, who buys lots of Microsoft licenses.
Re:Microsoft Has Manually Patched Their Equation Editor Exec... by ggg9990 on Friday November 17, 2017 @07:25PM (#15727078)
Yes, the NSA is surveilling the populace 24/7 through Microsoft Equation Editor.
Re:Microsoft Has Manually Patched Their Equation Editor Exec... by leoc on Friday November 17, 2017 @06:39AM (#15721164)
For ages Alan Kay has been claiming to know that MS has lost part of the Word codebase.
Re:Microsoft Has Manually Patched Their Equation Editor Exec... by leeter on Friday November 17, 2017 @08:53AM (#15721932)
In this case they may never have had the source, the copyright is for Design Science, Inc which makes MathType a popular equation editor for Word. Depending on how this was licensed this may have even technically been illegal (due to copyright issues); although I suspect MS has a license that allows this.
Re:Microsoft Has Manually Patched Their Equation Editor Exec... by noblethrasher on Friday November 17, 2017 @09:17AM (#15722109)
I've never heard him claim that MS actually lost the source code to Word, only that they couldn't find the cause of a decades-old bug (related to selection and text-justification as I recall), even though it had thousands of bug reports, and that they spent years looking for it before giving up.

The point was that the code is too big and complicated, even for some of the best engineers in the world.

Re:Microsoft Has Manually Patched Their Equation Editor Exec... by nimish on Friday November 17, 2017 @07:37AM (#15721484)
Microsoft has lost tons of code over the years. Even with the source, refactoring office which has people using file formats that are binary dumps of memory, is not trivial.
Re:Microsoft Has Manually Patched Their Equation Editor Exec... by leeter on Friday November 17, 2017 @08:55AM (#15721942)
This was actually the Onus for the switch to the XML formats IIRC. Basically after the DOJ settlement they had the uneasy realization that the requirement to document the .doc format was going to be a nightmare because nobody had a complete spec of it. To make it worse the code wasn't very portable and customers were asking for x64 support pretty hard at the time.
Re:Microsoft Has Manually Patched Their Equation Editor Exec... by rangibaby on Friday November 17, 2017 @09:08AM (#15722028)
Re: 64 bit is that about Excel? I found the idea of a Word document needing >4GB RAM somewhat absurd
Re:Microsoft Has Manually Patched Their Equation Editor Exec... by acdha on Friday November 17, 2017 @09:32AM (#15722220)
Note that due to the way the 32-bit address space was laid out, a process could really use only about 2GB of RAM — the extra 2GB was reserved for the system based on old 386-era CPU limitations. Since that space had various things allocated in it, a normal program generally wouldn't get more than 1.7GB in a single allocation — e.g. according to https://support.microsoft.com/en-us/help/313275/-not-enough-... Excel 2003 had a heap limit of about 1GB.

The other thing to keep in mind is that Office documents are, in addition to being somewhat bloated internally, far more than just text. Think about all of the people writing things like documentation with hundreds of screenshots (all uncompressed BMPs), audio or video, etc. — and the people with those are far more likely to be at the kind of large corporations which expect value from their support contracts. There were multiple ways to deal with that problem but in general the easiest was switching to a 64-bit address space.

Re:Microsoft Has Manually Patched Their Equation Editor Exec... by yuhong on Friday November 17, 2017 @04:03PM (#15725928)
Recently they had to enable /LARGEADDRESSAWARE in 32-bit Outlook.
Re:Microsoft Has Manually Patched Their Equation Editor Exec... by pjc50 on Friday November 17, 2017 @09:38AM (#15722253)
If you want to use a 64-bit COM/OLE object, such as from a VBA script, then it's extremely difficult unless the host is 64 bit.
Re:Microsoft Has Manually Patched Their Equation Editor Exec... by pjmlp on Friday November 17, 2017 @09:15AM (#15722092)
I can imagine users just pasting images without a 2nd thought about their sizes.

I routinely update single page Powerpoints with more than 4 MB, due to the background image or logos.

Re:Microsoft Has Manually Patched Their Equation Editor Exec... by MichaelMoser123 on Friday November 17, 2017 @09:31AM (#15722216)
Maybe they just don't know how to run the same version of the compiler any more, Visual C++ 4.2 or whatever they had... I remember it stopped working with some newer version of Windows.
Re:Microsoft Has Manually Patched Their Equation Editor Exec... by CamperBob2 on Friday November 17, 2017 @01:17PM (#15724478)
There'd be nothing extraordinary about that, either. I've never worked for a company that could build something today that they released twenty years ago.
Re:Microsoft Has Manually Patched Their Equation Editor Exec... by linker3000 on Friday November 17, 2017 @04:29PM (#15726116)
25 years old and I got it to compile and run when I re-found it last year!

https://github.com/linker3000/Historic-code-PC-Pascal-and-AS...

Re:Microsoft Has Manually Patched Their Equation Editor Exec... by khstangherlin on Friday November 17, 2017 @07:20AM (#15721384)
This do make a lot of sense. I don't think there is exe calls directly linked from other apps. If that were the case they would just update the address in the calling app. Much easier. Anyway, very nice piece of work. :)
Re:Microsoft Has Manually Patched Their Equation Editor Exec... by ksk on Friday November 17, 2017 @11:49AM (#15723584)
One other reason might be that they licensed part of the code from a third party and are no longer allowed to re-distribute it. I suppose patching out a few bytes might get them out of legal jail.