[all-commits] [llvm/llvm-project] a93e76: [clang][dataflow] Reorder checks to protect agains...

martinboehme via All-commits all-commits at lists.llvm.org
Tue Sep 19 21:28:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a93e76dd8778a5793c408eb503a46502bcf9b49c
      https://github.com/llvm/llvm-project/commit/a93e76dd8778a5793c408eb503a46502bcf9b49c
  Author: martinboehme <mboehme at google.com>
  Date:   2023-09-19 (Tue, 19 Sep 2023)

  Changed paths:
    M clang/lib/Analysis/FlowSensitive/Transfer.cpp

  Log Message:
  -----------
  [clang][dataflow] Reorder checks to protect against a null pointer dereference. (#66764)

I've received a report of a null pointer dereference happening on the
`LocDst->getType()` dereference. I wasn't unfortunately able to find a
repro,
but I'd argue the new version is better for the reduced indentation
alone.




More information about the All-commits mailing list