[all-commits] [llvm/llvm-project] bf17cb: [Bitstream] Make MaxChunkSize word-size independent

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Feb 8 01:17:56 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bf17cb294af422512b522575f3f74ab7964bf911
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-02-08 (Tue, 08 Feb 2022)

  Changed paths:
    M llvm/include/llvm/Bitstream/BitstreamReader.h
    A llvm/test/Bitcode/Inputs/invalid-chunk-size.bc
    M llvm/test/Bitcode/invalid.test

  Log Message:
  [Bitstream] Make MaxChunkSize word-size independent

We only support chunks <= 32 bits regardless of whether we're
running on a 64-bit platform or not. Chunk size > 32 <= 64 would
cause UB in the reading code.

More information about the All-commits mailing list