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

Potential null pointer deference in RpcProgramNfs3#readlink()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.0
    • Component/s: nfs
    • Labels:
      None
    • Hadoop Flags:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: