Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5886

Potential null pointer deference in RpcProgramNfs3#readlink()

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0
    • nfs
    • None
    • Reviewed

    Description

      Here is related code:

            if (MAX_READ_TRANSFER_SIZE < target.getBytes().length) {
              return new READLINK3Response(Nfs3Status.NFS3ERR_IO, postOpAttr, null);
            }
      

      READLINK3Response constructor would dereference the third parameter:

          this.path = new byte[path.length];
      

      Attachments

        1. HDFS-5886.patch
          0.9 kB
          Brandon Li

        Activity

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

          People

            brandonli Brandon Li
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment