Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-2707

Potential null dereference in FSDownload

VotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.6.0
    • None
    • None
    • Reviewed

    Description

      Here is related code in call():

            Pattern pattern = null;
            String p = resource.getPattern();
            if (p != null) {
              pattern = Pattern.compile(p);
            }
            unpack(new File(dTmp.toUri()), new File(dFinal.toUri()), pattern);
      

      In unpack():

              RunJar.unJar(localrsrc, dst, pattern);
      

      unJar() would dereference the pattern without checking whether it is null.

      Attachments

        1. YARN-2707.v01.patch
          3 kB
          Gera Shegalov

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jira.shegalov Gera Shegalov
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment