[all-commits] [llvm/llvm-project] af40bf: [MachO] Fix UB in memcpy

Shoaib Meenai via All-commits all-commits at lists.llvm.org
Tue Apr 28 11:34:41 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: af40bff32db7840cfbe07278ff0c498604acc5f0
      https://github.com/llvm/llvm-project/commit/af40bff32db7840cfbe07278ff0c498604acc5f0
  Author: Shoaib Meenai <smeenai at fb.com>
  Date:   2020-04-28 (Tue, 28 Apr 2020)

  Changed paths:
    M lld/MachO/InputSection.cpp

  Log Message:
  -----------
  [MachO] Fix UB in memcpy

UBSan complains about a memcpy with a null pointer, so just skip the
memcpy call if the data is empty.


  Commit: b52bc2653bbc8da852a804afbb34836bb7f1e58a
      https://github.com/llvm/llvm-project/commit/b52bc2653bbc8da852a804afbb34836bb7f1e58a
  Author: Shoaib Meenai <smeenai at fb.com>
  Date:   2020-04-28 (Tue, 28 Apr 2020)

  Changed paths:
    M lld/MachO/Config.h
    M lld/MachO/Driver.cpp
    M lld/MachO/Options.td
    M lld/MachO/SyntheticSections.cpp
    M lld/MachO/SyntheticSections.h
    M lld/MachO/Writer.cpp
    A lld/test/MachO/Inputs/goodbye-dylib.yaml
    A lld/test/MachO/Inputs/hello-dylib.yaml
    R lld/test/MachO/Inputs/libgoodbye.s
    R lld/test/MachO/Inputs/libhello.s
    R lld/test/MachO/dylib.s
    M lld/test/MachO/dylink.s
    M lld/test/MachO/load-commands.s
    M lld/test/MachO/symtab.s

  Log Message:
  -----------
  Revert "[lld-macho] Add support for emitting dylibs with a single symbol"

This reverts commit 9598778bd1910e77ccd399f2c9e979c8ecf98e55.

Reverting due to UBSan failures:
http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/40817/steps/check-lld%20ubsan/logs/stdio


  Commit: fbae153ca583588de73d8fae84ec262c24d09025
      https://github.com/llvm/llvm-project/commit/fbae153ca583588de73d8fae84ec262c24d09025
  Author: Shoaib Meenai <smeenai at fb.com>
  Date:   2020-04-28 (Tue, 28 Apr 2020)

  Changed paths:
    M lld/MachO/SyntheticSections.cpp
    M lld/MachO/SyntheticSections.h
    M lld/MachO/Writer.cpp
    R lld/test/MachO/symtab.s

  Log Message:
  -----------
  Revert "[lld-macho] Add basic symbol table output"

This reverts commit a3d95a50ee3397c89327fce6983624446cd8e9d7.

Reverting due to UBSan failures:
http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/40817/steps/check-lld%20ubsan/logs/stdio


Compare: https://github.com/llvm/llvm-project/compare/1b56980845ba...fbae153ca583


More information about the All-commits mailing list