Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15088

BufferedInputStream.skip function can return 0 when the file is corrupted, causing an infinite loop

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.5.0
    • None
    • streaming
    • None

    Description

      When a file is corrupted, the skip function can return 0, causing an infinite loop.
      Here is the code:

        private boolean slowReadUntilMatch(Pattern markPattern, boolean includePat,
                                           DataOutputBuffer outBufOrNull) throws IOException {
            ...
            for (long skiplen = endPos; skiplen > 0; ) {
              skiplen -= bin_.skip(skiplen); 
            }
            ...
        }
      

      Similar bugs are Hadoop-8614, Yarn-2905, Yarn-163, MAPREDUCE-6990

      Attachments

        Activity

          People

            Unassigned Unassigned
            dustinday John Doe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: