1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/tools/llvm-objcopy
James Henderson 6d55f9cfe4 [llvm-objcopy] Fix crash for binary input files with non-ascii names
The code was using the standard isalnum function which doesn't handle
values outside the non-ascii range. Switching to using llvm::isAlnum
instead ensures we don't provoke undefined behaviour, which can in some
cases result in crashes.

Reviewed by: MaskRay

Differential Revision: https://reviews.llvm.org/D97663
2021-03-05 08:57:40 +00:00
..
COFF [llvm-objcopy] Delete --build-id-link-{dir,input,output} 2021-02-15 11:17:32 -08:00
ELF [llvm-objcopy] Fix crash for binary input files with non-ascii names 2021-03-05 08:57:40 +00:00
MachO [llvm-objcopy] Delete --build-id-link-{dir,input,output} 2021-02-15 11:17:32 -08:00
wasm [llvm-objcopy] Delete --build-id-link-{dir,input,output} 2021-02-15 11:17:32 -08:00
BitcodeStripOpts.td
Buffer.cpp [llvm-objcopy] preserve file ownership when overwritten by root 2021-02-12 18:01:43 -08:00
Buffer.h [llvm-objcopy] preserve file ownership when overwritten by root 2021-02-12 18:01:43 -08:00
CMakeLists.txt
CommonOpts.td [llvm-objcopy][llvm-strip] Improve --discard-all documentation and help 2021-03-04 10:25:35 +00:00
CopyConfig.cpp [llvm-objcopy] Delete --build-id-link-{dir,input,output} 2021-02-15 11:17:32 -08:00
CopyConfig.h [llvm-objcopy] Delete --build-id-link-{dir,input,output} 2021-02-15 11:17:32 -08:00
InstallNameToolOpts.td
llvm-objcopy.cpp [llvm-objcopy] If input=output, preserve umask bits, otherwise drop S_ISUID/S_ISGID bits 2021-02-24 11:10:09 -08:00
llvm-objcopy.h
ObjcopyOpts.td [llvm-objcopy] Delete --build-id-link-{dir,input,output} 2021-02-15 11:17:32 -08:00
StripOpts.td