Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8136844

Change JavawsLauncher.app to use NSTask or execv

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • None
    • deploy
    • b89
    • os_x

        Chris Ries requested changing the call to system to execv, but NSTask is just as good.

        In AppDelegate.m change the call to system to either NSTask or execv. URLs could have spaces which would be a potential vulnerability. Here is an example of NSTask:

            NSTask *task = [[NSTask alloc] init];
            task.launchPath = @"/Library/Internet\\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/javaws";
            task.arguments = @[url];
            [task launch];

              cbensen Chris Bensen (Inactive)
              cbensen Chris Bensen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: