Bug 1577706 - C-C part: Check osint parameters 'compose' and 'mail'. r=me

This commit is contained in:
Jorg K 2019-09-04 08:50:02 +02:00
Родитель 64d03d83c5
Коммит 7837983e0f
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -4,6 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsXULAppAPI.h"
#include "mozilla/CmdLineAndEnvUtils.h"
#include "mozilla/XREAppData.h"
#include "application.ini.h"
#include "mozilla/Bootstrap.h"
@ -207,6 +208,11 @@ static int do_main(int argc, char* argv[], char* envp[]) {
gBootstrap->XRE_LibFuzzerSetDriver(fuzzer::FuzzerDriver);
#endif
// Note: FF needs to keep in sync with LauncherProcessWin,
// TB doesn't have that file.
const char* acceptableParams[] = {"compose", "mail", nullptr};
EnsureCommandlineSafe(argc, argv, acceptableParams);
return gBootstrap->XRE_main(argc, argv, config);
}