[all-commits] [llvm/llvm-project] 64409d: Revert "[ObjYAML] Use strcmp instead of strncmp"

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Dec 6 16:14:30 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 64409d66904d7330a3beb1dcb94a4989e24b4595
      https://github.com/llvm/llvm-project/commit/64409d66904d7330a3beb1dcb94a4989e24b4595
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-12-07 (Wed, 07 Dec 2022)

  Changed paths:
    M llvm/lib/ObjectYAML/MachOEmitter.cpp

  Log Message:
  -----------
  Revert "[ObjYAML] Use strcmp instead of strncmp"

This reverts commit f45195784168cced1e12fe888d6a906b8a4b424f.

The change is wrong. segname may not be NUL-terminated if it has 16 bytes.




More information about the All-commits mailing list