Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-6039

BitReader::GetAligned() doesn't zero out trailing bytes

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Impala 2.11.0
    • Fix Version/s: Impala 2.11.0
    • Component/s: Backend
    • Labels:
      None

      Description

      BitReader::GetAligned() only sets the initial bytes of the output value, leaving the remaining bytes set to whatever they were previously. It isn't clear if this is intentional and undocumented or a latent bug.

      The problem is non-obvious because the current callsites either call it with a single byte at a time (GetVlqInt()), or initialize the output value to zero and always call GetAligned() with the same num_bytes value (RleDecoder).

        Attachments

          Activity

            People

            • Assignee:
              tarmstrong Tim Armstrong
              Reporter:
              tarmstrong Tim Armstrong
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: