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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.0
    • 2.6.0
    • nfs
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: