[all-commits] [llvm/llvm-project] e4b2f3: [WebAssembly][libObject] Avoid re-use of Section o...

Sam Clegg via All-commits all-commits at lists.llvm.org
Fri Sep 10 06:31:28 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e4b2f3054a77ec28d501e269affbac6cfdfda35c
      https://github.com/llvm/llvm-project/commit/e4b2f3054a77ec28d501e269affbac6cfdfda35c
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2021-09-10 (Fri, 10 Sep 2021)

  Changed paths:
    M llvm/lib/Object/WasmObjectFile.cpp
    M llvm/test/tools/llvm-objcopy/wasm/basic-only-section.test

  Log Message:
  -----------
  [WebAssembly][libObject] Avoid re-use of Section object during parsing

The re-use of this struct across iterations of the loop was causing
fields (specifically Name) to be incorrectly shared between multiple
sections.

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




More information about the All-commits mailing list