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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Impala 2.11.0
    • Impala 2.11.0
    • Backend
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: