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

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.1.0, 1.1.1, 1.2.0
    • Fix Version/s: 1.1.1, 1.2.0
    • Component/s: Spark Core
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: