[all-commits] [llvm/llvm-project] fd4399: [lldb] Fix crash in SymbolFileCTF::ParseFunctions ...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Tue Apr 23 16:50:44 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd4399cb11f4069888bc7eac01f74493b5a2af48
      https://github.com/llvm/llvm-project/commit/fd4399cb11f4069888bc7eac01f74493b5a2af48
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2024-04-23 (Tue, 23 Apr 2024)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/CTF/SymbolFileCTF.cpp
    M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
    M lldb/test/API/macosx/ctf/Makefile
    M lldb/test/API/macosx/ctf/TestCTF.py
    M lldb/test/API/macosx/ctf/test.c

  Log Message:
  -----------
  [lldb] Fix crash in SymbolFileCTF::ParseFunctions (#89845)

Make SymbolFileCTF::ParseFunctions resilient against not being able to
resolve the argument or return type of a function. ResolveTypeUID can
fail for a variety of reasons so we should always check its result.

The type that caused the crash was `_Bool` which we didn't recognize 
as a basic type. This commit also fixes the underlying issue and adds
a test.

rdar://126943722



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