[clang] Fix crash in 'malloc' referring to function without a argument (PR #159371)

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 17 07:45:56 PDT 2025


================
@@ -347,6 +347,9 @@ Bug Fixes in This Version
   ``-Wshadow`` and show uncaptured-local warnings with ``-Wshadow-all``. (#GH68605)
 - Fixed a failed assertion with a negative limit parameter value inside of
   ``__has_embed``. (#GH157842)
+- Fixed an assertion when an improper use of the ``malloc`` attribute targetting
+  a function without arguments caused us to try to access a non-existant argument.
+  (#GH159080)
----------------
Fznamznon wrote:

I was beaten, but there is still targetting vs targeting.

https://github.com/llvm/llvm-project/pull/159371


More information about the cfe-commits mailing list