Hidden backdoor API to root privileges in Apple OS X
161–170 of 367 posts
Re: Hidden backdoor API to root privileges in Apple OS X
#162Earlier quoted context omitted.
To be fair, calling a virtual method on a null receiver is undefined behavior (not necessarily a segfault!) in C++ too. The compiler is free to replicate Objective-C's behavior if it wants to. (Of course, no compilers actually do precisely that, but it is possible for compilers to delete virtual method calls entirely if it can prove the receiver had to be null...)
Why is that undefined? Seems like it should obviously cause a fault...
class Example {
public:
static bool do_it;
virtual void do_it_if() {
if (g_do_it) return;
/* otherwise do something that dereferences this... */
}
};
void test1() {
Example::do_it = false;
static_cast(NULL)->do_it_if();
}
void test2() {
Example::do_it = true;
static_cast(NULL)->do_it_if();
}
In the above code, only test2 crashes (clang 6.0). If crashing was defined behavior you would need an extra check in the code generated for do_it_if.EDIT:
Also, it's worth explaining why test1 works even though do_it_if is virtual. Since there aren't any methods that override do_it_if, the virtual method lookup can be elided and you don't have to dereference this to find the vtable. If do_it_if had been overridden and the runtime type was unknown, you would need to dereference this to lookup do_it_if in the vtable, which would segfault in both tests.
Re: Hidden backdoor API to root privileges in Apple OS X
#163Earlier quoted context omitted.
Apple's model customer is one who upgrades often. If you want solid support for old products, stick with Microsoft, and accept that their products can be clunkier because of deliberate choices to maintain backwards-compatibility.
> Apple's model customer is one who upgrades often. I don't know any tech company that doesn't have that idea of a model customer :) To their credit, I can run the latest on a pretty old Mac Mini at home. It's not as fast as it used to be, but it is supported long after the form factor of the Mini has undergone big changes. I don't consider myself being squeezed to upgrade.
Re: Hidden backdoor API to root privileges in Apple OS X
#164Earlier quoted context omitted.
To be fair, OS X updates are free and usually run well even on 5+ years old hardware. OS X has kinda gone the way of Chrome, with most users on the newest version.
"Most users on the newest version"? Of the seven or eight Macs at my workplace, my personal Macbook is the only one running the latest OSX.
Re: Hidden backdoor API to root privileges in Apple OS X
#165Earlier quoted context omitted.
Apple's model customer is one who upgrades often. If you want solid support for old products, stick with Microsoft, and accept that their products can be clunkier because of deliberate choices to maintain backwards-compatibility.
To be fair, OS X updates are free and usually run well even on 5+ years old hardware. OS X has kinda gone the way of Chrome, with most users on the newest version.
Unless your hardware has been made "incompatible" by Apple (not for any technical reason, but simply because they wish you'd buy new hardware).
Re: Hidden backdoor API to root privileges in Apple OS X
#166Earlier quoted context omitted.
A large chunk of this is due to business use of Windows. Microsoft would not be able to get away with the shenanigans that Apple are pulling here.
Don't worry, my company uses plenty of Macs, and they're plenty upset. As does the U.S. government. I wouldn't count on this "oh, we're just not going to backport the update" sticking around. Unless they want to loose all of their government and commercial sales.
The government is largely Windows PC's (mostly XP and Win7).
Re: Hidden backdoor API to root privileges in Apple OS X
#167Re: Hidden backdoor API to root privileges in Apple OS X
#168Earlier quoted context omitted.
I'm with you on this; I can't leave Mavericks just yet. Every colleague I have that's moved on has had numerous issues with their machine. And now this crap. Ugh.
What kind of issues? I've literally noticed no differences besides UI.
While "upgrading" to 10.10.3, my computer failed to reboot itself. It just sat there, black screen, with a little spinner, for about 2 hours. Hard reboot, everything is back to normal. For now.
I fully expect 10.10.4 to actually destroy my hard drive at this point, as well as cause my monitor to spontaneously get 30-40 dead pixels.
Sucky part is, I feel I have no alternative.
Windows is out of the question after seeing what a factory OEM image comes with nowadays. I'm not giving them money and spending 2 days formatting/reinstalling/seeking out drivers on slow Taiwanese servers just to make a half-usable computer. And then, after all that, spend another 2 days installing various adware infested shitware to get a fricking PDF viewer. And don't get me started on getting a half-decent dev environment going. Ugh.
Linux is almost there. It's a crap shoot for me, unless it's running in a VM. I never know which kernel update will fix my trackpad/break my sound/wifi and which will fix the wifi, break suspend, fix sound, but break xrandr or some other archaic XWindows-related technology.
So, OS X it is, for the time being.
Re: Hidden backdoor API to root privileges in Apple OS X
#169Earlier quoted context omitted.
I'm with you on this; I can't leave Mavericks just yet. Every colleague I have that's moved on has had numerous issues with their machine. And now this crap. Ugh.
What kind of issues? I've literally noticed no differences besides UI.
Re: Hidden backdoor API to root privileges in Apple OS X
#170Lion was cancer.