[all-commits] [llvm/llvm-project] 1c0e72: [Clang] Prevent null pointer dereference in Diagno...

smanna12 via All-commits all-commits at lists.llvm.org
Mon Jul 1 11:03:24 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c0e7221ce35e4b709951c06c67aeb1ed3205f27
      https://github.com/llvm/llvm-project/commit/1c0e7221ce35e4b709951c06c67aeb1ed3205f27
  Author: smanna12 <soumi.manna at intel.com>
  Date:   2024-07-01 (Mon, 01 Jul 2024)

  Changed paths:
    M clang/lib/Sema/SemaAvailability.cpp

  Log Message:
  -----------
  [Clang] Prevent null pointer dereference in DiagnoseDeclAvailability() (#97095)

This patch adds an assertion in the DiagnoseDeclAvailabilit() function
to ensure that the expected availability attribute is not null before
they are passed to hasMatchingEnvironmentOrNone() to prevent potential
null pointer dereferences and improve the robustness of the availability
diagnostics process.



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