[all-commits] [llvm/llvm-project] cb0657: Avoid dangling reference on SectionList

serge-sans-paille via All-commits all-commits at lists.llvm.org
Thu Mar 5 00:44:24 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cb06571a441c36e540808e397881e42bece99a85
      https://github.com/llvm/llvm-project/commit/cb06571a441c36e540808e397881e42bece99a85
  Author: serge-sans-paille <sguelton at redhat.com>
  Date:   2020-03-05 (Thu, 05 Mar 2020)

  Changed paths:
    M llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h

  Log Message:
  -----------
  Avoid dangling reference on SectionList

Bug spotted by https://cookieplmonster.github.io/2020/02/01/emulator-bug-llvm-bug/

Basically, holding references to object inside a resized vector is a bad idea.

Differential Revision: https://reviews.llvm.org/D75110




More information about the All-commits mailing list