[all-commits] [llvm/llvm-project] 5b773d: Fix incorrect check for running out of source loca...

David Blaikie via All-commits all-commits at lists.llvm.org
Tue Oct 18 13:48:18 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b773dcd2de0c4844814266a90dac14c349b8f18
      https://github.com/llvm/llvm-project/commit/5b773dcd2de0c4844814266a90dac14c349b8f18
  Author: Paul Pluzhnikov <ppluzhnikov at google.com>
  Date:   2022-10-18 (Tue, 18 Oct 2022)

  Changed paths:
    M clang/lib/Basic/SourceManager.cpp

  Log Message:
  -----------
  Fix incorrect check for running out of source locations.

When CurrentLoadedOffset is less than TotalSize, current code will
trigger unsigned overflow and will not return an "allocation failed"
indicator.

Google ref: b/248613299

Reviewed By: dblaikie

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




More information about the All-commits mailing list