mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-15 06:20:41 +00:00
Bug 823533 - Reject plugins with a different architecture in 32bit Mac builds. r=bsmedberg,smichaud
This commit is contained in:
parent
83166588ed
commit
d3be2bc9c4
@ -380,10 +380,15 @@ static bool IsCompatibleArch(nsIFile *file)
|
||||
return false;
|
||||
}
|
||||
|
||||
uint32_t containerArchitectures = mozilla::ipc::GeckoChildProcessHost::GetSupportedArchitecturesForProcessType(GeckoProcessType_Plugin);
|
||||
uint32_t supportedArchitectures =
|
||||
#ifdef __LP64__
|
||||
mozilla::ipc::GeckoChildProcessHost::GetSupportedArchitecturesForProcessType(GeckoProcessType_Plugin);
|
||||
#else
|
||||
base::GetCurrentProcessArchitecture();
|
||||
#endif
|
||||
|
||||
// Consider the plugin architecture valid if there is any overlap in the masks.
|
||||
isPluginFile = !!(containerArchitectures & pluginLibArchitectures);
|
||||
isPluginFile = !!(supportedArchitectures & pluginLibArchitectures);
|
||||
}
|
||||
::CFRelease(pluginBundle);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user