[all-commits] [llvm/llvm-project] b7a249: [libunwind] Remove unnecessary strcpy dependency (...
Michael Kenzel via All-commits
all-commits at lists.llvm.org
Wed Nov 15 15:42:07 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b7a249d26fe61432050df470d23bdea417fda574
https://github.com/llvm/llvm-project/commit/b7a249d26fe61432050df470d23bdea417fda574
Author: Michael Kenzel <15786918+michael-kenzel at users.noreply.github.com>
Date: 2023-11-15 (Wed, 15 Nov 2023)
Changed paths:
M libunwind/src/UnwindLevel1-gcc-ext.c
M libunwind/test/forceunwind.pass.cpp
Log Message:
-----------
[libunwind] Remove unnecessary strcpy dependency (#72043)
libunwind uses a minimal set of necessary standard library functions,
basically just `memset` and `memcpy`. There is a single use of `strcpy`
to copy the bytes `"CLNGUNW"` into a `uint64_t` object. This is both an
arguably odd use of the `strcpy` function as well as it unnecessarily
widens the set of library functions that must be available to build
libunwind, which can be an obstacle in baremetal scenarios. This change
simply replaces this one `strcpy` with the more fundamental `memcpy`.
More information about the All-commits
mailing list