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

Missing null check in RpcProgramNfs3#read(XDR, SecurityHandler)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.6.0
    • Component/s: nfs
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Around line 691:

              FSDataInputStream fis = clientCache.getDfsInputStream(userName,
                  Nfs3Utils.getFileIdPath(handle));
      
              try {
                readCount = fis.read(offset, readbuffer, 0, count);
      

      fis may be null, leading to NullPointerException

        Attachments

        1. HDFS-6582.patch
          2 kB
          Abhiraj Butala

          Activity

            People

            • Assignee:
              abutala Abhiraj Butala
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: