[all-commits] [llvm/llvm-project] 20913c: [PDB] Prevent potential overflow when calculating ...

Igor Wodiany via All-commits all-commits at lists.llvm.org
Mon Sep 28 06:24:46 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 20913cfb73ee109c0ad4e9cb298e2c1a0595fb0b
      https://github.com/llvm/llvm-project/commit/20913cfb73ee109c0ad4e9cb298e2c1a0595fb0b
  Author: Igor Wodiany <igor.wodiany at amd.com>
  Date:   2026-09-28 (Mon, 28 Sep 2026)

  Changed paths:
    M llvm/lib/DebugInfo/PDB/Native/LinePrinter.cpp

  Log Message:
  -----------
  [PDB] Prevent potential overflow when calculating `Base` in `formatMsfStreamData` (#224662)

The `Base` is calculated as a product of two 32-bits number but the
results is assigned to a 64-bit value. By casting one of the operands to
64-bit, the multiplication is done using the whole width of the `Base`
variable, preventing a potential overflow. This fixes an issue reported
by a CodeQL scan.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list