Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-4107

Incorrect handling of Channel.read()'s return value may lead to data truncation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.1.0, 1.1.1, 1.2.0
    • 1.1.1, 1.2.0
    • Spark Core
    • None

    Description

      When using Channel.read(), we need to properly handle the return value and account for the case where we've read fewer bytes than expected. There are a few places where we don't do this properly, which may lead to incorrect data truncation in rare circumstances. I've opened a PR to fix this.

      Attachments

        Issue Links

          Activity

            People

              joshrosen Josh Rosen
              joshrosen Josh Rosen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: