[all-commits] [llvm/llvm-project] 1d6243: [lldb] Fix symbol table use after free

Augusto Noronha via All-commits all-commits at lists.llvm.org
Mon Jan 9 10:36:55 PST 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d6243db90b09c61d78a14268bb88a73792b63ab
  Author: Augusto Noronha <augusto2112 at me.com>
  Date:   2023-01-09 (Mon, 09 Jan 2023)

  Changed paths:
    M lldb/include/lldb/Symbol/SymbolFile.h
    M lldb/source/Symbol/SymbolFile.cpp

  Log Message:
  [lldb] Fix symbol table use after free

The symbol file stores a raw pointer to the main object file's symbol
table. This pointer, however, can be freed, if ObjectFile::ClearSymtab
is ever called. This patch makes sure out pointer to the symbol file
is valid before using it.

More information about the All-commits mailing list