[all-commits] [llvm/llvm-project] 7a2dfe: Avoid unintended integer overflow in bitstream han...

Andy Kaylor via All-commits all-commits at lists.llvm.org
Tue Aug 15 11:16:44 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a2dfe2237ec4433cfd8eb057631d1859513d54f
  Author: Andy Kaylor <andrew.kaylor at intel.com>
  Date:   2023-08-15 (Tue, 15 Aug 2023)

  Changed paths:
    M llvm/include/llvm/Bitstream/BitstreamReader.h
    M llvm/include/llvm/Bitstream/BitstreamWriter.h

  Log Message:
  Avoid unintended integer overflow in bitstream handling

This change fixes two cases detected by static analysis where an operation is being performed on a 32-bit integer which may overflow and the result is assigned to a 64-bit integer.

Differential Revision: https://reviews.llvm.org/D144661

More information about the All-commits mailing list