[all-commits] [llvm/llvm-project] f7fec8: [Clang] Prevent null pointer dereference in templa...
smanna12 via All-commits
all-commits at lists.llvm.org
Sat Jun 29 11:33:01 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f7fec8c80a986e82ef174080a3e07703c7b2c3c6
https://github.com/llvm/llvm-project/commit/f7fec8c80a986e82ef174080a3e07703c7b2c3c6
Author: smanna12 <soumi.manna at intel.com>
Date: 2024-06-29 (Sat, 29 Jun 2024)
Changed paths:
M clang/lib/Sema/SemaTemplate.cpp
Log Message:
-----------
[Clang] Prevent null pointer dereference in template deduction guide creation (#97097)
This patch addresses static analyzer concerns where `TSI` could be
dereferenced after being assigned a null value from `SubstType` in
`ConvertConstructorToDeductionGuideTransform()`.
The fixes now check null value of `TSI` after the call to `SubstType`
and return `nullptr` to prevent potential null pointer dereferences when
calling getTypeLoc() or getType() and ensure safe execution.
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