[all-commits] [llvm/llvm-project] b7e7a9: [lldb] Check max_size before resizing DataBufferHeap

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Tue Feb 15 13:58:48 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b7e7a982e93db82ebd7fc08bb9614468f8c0e1e5
      https://github.com/llvm/llvm-project/commit/b7e7a982e93db82ebd7fc08bb9614468f8c0e1e5
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2022-02-15 (Tue, 15 Feb 2022)

  Changed paths:
    M lldb/include/lldb/Utility/DataBufferHeap.h
    M lldb/source/Utility/DataBufferHeap.cpp

  Log Message:
  -----------
  [lldb] Check max_size before resizing DataBufferHeap

Don't resize DataBufferHeap if the newly requested size exceeds the
capacity of the underlying data structure, i.e. std::vector<uint8_t>.
This matches the existing check in the DataBufferHeap constructor.




More information about the All-commits mailing list