Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-7305

Return value from in.read() is ignored in SerializationUtils#readLongLE()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

        long readLongLE(InputStream in) throws IOException {
          in.read(readBuffer, 0, 8);
          return (((readBuffer[0] & 0xff) << 0)
              + ((readBuffer[1] & 0xff) << 8)
      

      Return value from read() may indicate fewer than 8 bytes read.
      The return value should be checked.

      Attachments

        1. HIVE-7305_001.patch
          0.8 kB
          skrho

        Activity

          People

            rsk13th skrho
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: