[all-commits] [llvm/llvm-project] e16f48: [SPIR-V] Avoid crash on malformed mangled builtin ...

Arseniy Obolenskiy via All-commits all-commits at lists.llvm.org
Tue Jul 7 04:42:33 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e16f4895b18d4bac812326416dbb774d5b4162ad
      https://github.com/llvm/llvm-project/commit/e16f4895b18d4bac812326416dbb774d5b4162ad
  Author: Arseniy Obolenskiy <arseniy.obolenskiy at amd.com>
  Date:   2026-07-07 (Tue, 07 Jul 2026)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVUtils.cpp
    A llvm/test/CodeGen/SPIRV/malformed-mangled-builtin-name.ll

  Log Message:
  -----------
  [SPIR-V] Avoid crash on malformed mangled builtin name length (#207939)

Replace the assert on invalid length parsing with a graceful bail-out
since malformed names can potentially come from outside, it is not
necessarily always an error

All usages of `getOclOrSpirvBuiltinDemangledName` are being checked for
emptiness where it is needed anyway



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