Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler. Number of rules (primarily dangerous function names) in C/C++ ruleset: 223 Examining data/upx-ucl-3.96/src/bele.h Examining data/upx-ucl-3.96/src/bele_policy.h Examining data/upx-ucl-3.96/src/bptr.h Examining data/upx-ucl-3.96/src/c_file.cpp Examining data/upx-ucl-3.96/src/c_init.cpp Examining data/upx-ucl-3.96/src/c_none.cpp Examining data/upx-ucl-3.96/src/c_screen.cpp Examining data/upx-ucl-3.96/src/compress.cpp Examining data/upx-ucl-3.96/src/compress.h Examining data/upx-ucl-3.96/src/compress_lzma.cpp Examining data/upx-ucl-3.96/src/compress_ucl.cpp Examining data/upx-ucl-3.96/src/compress_zlib.cpp Examining data/upx-ucl-3.96/src/conf.h Examining data/upx-ucl-3.96/src/console.h Examining data/upx-ucl-3.96/src/except.cpp Examining data/upx-ucl-3.96/src/except.h Examining data/upx-ucl-3.96/src/file.cpp Examining data/upx-ucl-3.96/src/file.h Examining data/upx-ucl-3.96/src/filter/ct.h Examining data/upx-ucl-3.96/src/filter/cto.h Examining data/upx-ucl-3.96/src/filter/ctoj.h Examining data/upx-ucl-3.96/src/filter/ctojr.h Examining data/upx-ucl-3.96/src/filter/ctok.h Examining data/upx-ucl-3.96/src/filter/ctsw.h Examining data/upx-ucl-3.96/src/filter/getcto.h Examining data/upx-ucl-3.96/src/filter/ppcbxx.h Examining data/upx-ucl-3.96/src/filter/sub16.h Examining data/upx-ucl-3.96/src/filter/sub32.h Examining data/upx-ucl-3.96/src/filter/sub8.h Examining data/upx-ucl-3.96/src/filter/sw.h Examining data/upx-ucl-3.96/src/filter.cpp Examining data/upx-ucl-3.96/src/filter.h Examining data/upx-ucl-3.96/src/filteri.cpp Examining data/upx-ucl-3.96/src/help.cpp Examining data/upx-ucl-3.96/src/lefile.cpp Examining data/upx-ucl-3.96/src/lefile.h Examining data/upx-ucl-3.96/src/linker.cpp Parsing failed to find end of parameter list; semicolon terminated it in (start, "%x%*8c %1023s %*x %1023s", #else // work around broken scanf() implementations // http://bugs.winehq.org/show_bug.cgi?id=10401 (fixed in Wine 0.9.58) else if (sscanf(s Examining data/upx-ucl-3.96/src/linker.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zAlloc.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zAlloc.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zBuffer.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zBuffer.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zCrc.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zCrc.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zDecode.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zDecode.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zExtract.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zExtract.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zHeader.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zHeader.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zIn.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zIn.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zItem.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zItem.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zMain.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zMethodID.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zMethodID.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zTypes.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Common/FileStreams.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Common/FileStreams.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Common/InBuffer.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Common/InBuffer.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Common/OutBuffer.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Common/OutBuffer.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Common/StdAfx.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Common/StreamUtils.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Common/StreamUtils.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/ARM.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/ARM.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/ARMThumb.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/ARMThumb.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/BranchARM.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/BranchARM.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/BranchARMThumb.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/BranchARMThumb.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/BranchCoder.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/BranchCoder.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/BranchIA64.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/BranchIA64.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/BranchPPC.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/BranchPPC.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/BranchSPARC.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/BranchSPARC.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/BranchTypes.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/BranchX86.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/BranchX86.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/IA64.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/IA64.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/PPC.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/PPC.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/SPARC.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/SPARC.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/StdAfx.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/x86.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/x86.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/x86_2.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/Branch/x86_2.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZ/BinTree/BinTree.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZ/BinTree/BinTree2.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZ/BinTree/BinTree3.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZ/BinTree/BinTree3Z.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZ/BinTree/BinTree4.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZ/BinTree/BinTreeMain.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZ/HashChain/HC2.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZ/HashChain/HC3.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZ/HashChain/HC4.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZ/HashChain/HCMain.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZ/IMatchFinder.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZ/LZInWindow.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZ/LZInWindow.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZ/LZOutWindow.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZ/LZOutWindow.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZ/StdAfx.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA/LZMA.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA/LZMADecoder.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA/LZMADecoder.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA/LZMAEncoder.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA/LZMAEncoder.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA/StdAfx.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_Alone/LzmaAlone.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_Alone/LzmaBench.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_Alone/LzmaBench.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_Alone/LzmaRam.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_Alone/LzmaRam.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_Alone/LzmaRamDecode.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_Alone/LzmaRamDecode.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_Alone/StdAfx.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_Alone/StdAfx.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaDecode.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaDecode.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaDecodeSize.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateDecode.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateDecode.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateTest.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTest.c Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTypes.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/RangeCoder/RangeCoder.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/RangeCoder/RangeCoderBit.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/RangeCoder/RangeCoderBit.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/RangeCoder/RangeCoderBitTree.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/RangeCoder/RangeCoderOpt.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/RangeCoder/StdAfx.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/ICoder.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/7zip/IStream.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/Alloc.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/Alloc.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/CRC.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/CRC.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/C_FileIO.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/C_FileIO.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/ComTry.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/CommandLineParser.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/CommandLineParser.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/Defs.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/MyCom.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/MyGuidDef.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/MyInitGuid.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/MyUnknown.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/MyWindows.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/NewHandler.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/NewHandler.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/StdAfx.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/String.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/String.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/StringConvert.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/StringConvert.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/StringToInt.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/StringToInt.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/Types.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/Vector.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/Common/Vector.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Windows/Defs.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Windows/FileIO.cpp Examining data/upx-ucl-3.96/src/lzma-sdk/C/Windows/FileIO.h Examining data/upx-ucl-3.96/src/lzma-sdk/C/Windows/StdAfx.h Examining data/upx-ucl-3.96/src/main.cpp Examining data/upx-ucl-3.96/src/mem.cpp Examining data/upx-ucl-3.96/src/mem.h Examining data/upx-ucl-3.96/src/miniacc.h Examining data/upx-ucl-3.96/src/msg.cpp Examining data/upx-ucl-3.96/src/options.h Examining data/upx-ucl-3.96/src/p_armpe.cpp Examining data/upx-ucl-3.96/src/p_armpe.h Examining data/upx-ucl-3.96/src/p_com.cpp Examining data/upx-ucl-3.96/src/p_com.h Examining data/upx-ucl-3.96/src/p_djgpp2.cpp Examining data/upx-ucl-3.96/src/p_djgpp2.h Examining data/upx-ucl-3.96/src/p_elf.h Examining data/upx-ucl-3.96/src/p_elf_enum.h Examining data/upx-ucl-3.96/src/p_exe.cpp Examining data/upx-ucl-3.96/src/p_exe.h Examining data/upx-ucl-3.96/src/p_lx_elf.h Examining data/upx-ucl-3.96/src/p_lx_exc.cpp Examining data/upx-ucl-3.96/src/p_lx_exc.h Examining data/upx-ucl-3.96/src/p_lx_interp.cpp Examining data/upx-ucl-3.96/src/p_lx_interp.h Examining data/upx-ucl-3.96/src/p_lx_sh.cpp Examining data/upx-ucl-3.96/src/p_lx_sh.h Examining data/upx-ucl-3.96/src/p_mach.cpp Examining data/upx-ucl-3.96/src/p_mach.h Examining data/upx-ucl-3.96/src/p_mach_enum.h Examining data/upx-ucl-3.96/src/p_ps1.cpp Examining data/upx-ucl-3.96/src/p_ps1.h Examining data/upx-ucl-3.96/src/p_sys.cpp Examining data/upx-ucl-3.96/src/p_sys.h Examining data/upx-ucl-3.96/src/p_tmt.cpp Examining data/upx-ucl-3.96/src/p_tmt.h Examining data/upx-ucl-3.96/src/p_tos.cpp Examining data/upx-ucl-3.96/src/p_tos.h Examining data/upx-ucl-3.96/src/p_unix.cpp Examining data/upx-ucl-3.96/src/p_unix.h Examining data/upx-ucl-3.96/src/p_vmlinx.cpp Examining data/upx-ucl-3.96/src/p_vmlinx.h Examining data/upx-ucl-3.96/src/p_vmlinz.cpp Examining data/upx-ucl-3.96/src/p_vmlinz.h Examining data/upx-ucl-3.96/src/p_w32pe.cpp Examining data/upx-ucl-3.96/src/p_w32pe.h Examining data/upx-ucl-3.96/src/p_w64pep.cpp Examining data/upx-ucl-3.96/src/p_w64pep.h Examining data/upx-ucl-3.96/src/p_wcle.cpp Examining data/upx-ucl-3.96/src/p_wcle.h Examining data/upx-ucl-3.96/src/packer.cpp Examining data/upx-ucl-3.96/src/packer.h Examining data/upx-ucl-3.96/src/packer_c.cpp Examining data/upx-ucl-3.96/src/packer_f.cpp Examining data/upx-ucl-3.96/src/packhead.cpp Examining data/upx-ucl-3.96/src/packmast.cpp Examining data/upx-ucl-3.96/src/packmast.h Examining data/upx-ucl-3.96/src/pefile.cpp Examining data/upx-ucl-3.96/src/pefile.h Examining data/upx-ucl-3.96/src/s_djgpp2.cpp Examining data/upx-ucl-3.96/src/s_object.cpp Examining data/upx-ucl-3.96/src/s_vcsa.cpp Examining data/upx-ucl-3.96/src/s_win32.cpp Examining data/upx-ucl-3.96/src/screen.h Examining data/upx-ucl-3.96/src/snprintf.cpp Examining data/upx-ucl-3.96/src/snprintf.h Examining data/upx-ucl-3.96/src/stdcxx.cpp Examining data/upx-ucl-3.96/src/stdcxx.h Examining data/upx-ucl-3.96/src/stub/amd64-darwin.dylib-entry.h Examining data/upx-ucl-3.96/src/stub/amd64-darwin.macho-entry.h Examining data/upx-ucl-3.96/src/stub/amd64-darwin.macho-fold.h Examining data/upx-ucl-3.96/src/stub/amd64-darwin.macho-upxmain.h Examining data/upx-ucl-3.96/src/stub/amd64-linux.elf-entry.h Examining data/upx-ucl-3.96/src/stub/amd64-linux.elf-fold.h Examining data/upx-ucl-3.96/src/stub/amd64-linux.kernel.vmlinux-head.h Examining data/upx-ucl-3.96/src/stub/amd64-linux.kernel.vmlinux.h Examining data/upx-ucl-3.96/src/stub/amd64-linux.shlib-init.h Examining data/upx-ucl-3.96/src/stub/amd64-win64.pep.h Examining data/upx-ucl-3.96/src/stub/arm.v4a-linux.elf-entry.h Examining data/upx-ucl-3.96/src/stub/arm.v4a-linux.elf-fold.h Examining data/upx-ucl-3.96/src/stub/arm.v4a-wince.pe.h Examining data/upx-ucl-3.96/src/stub/arm.v4t-wince.pe.h Examining data/upx-ucl-3.96/src/stub/arm.v5a-darwin.macho-entry.h Examining data/upx-ucl-3.96/src/stub/arm.v5a-darwin.macho-fold.h Examining data/upx-ucl-3.96/src/stub/arm.v5a-linux.elf-entry.h Examining data/upx-ucl-3.96/src/stub/arm.v5a-linux.elf-fold.h Examining data/upx-ucl-3.96/src/stub/arm.v5a-linux.kernel.vmlinux-head.h Examining data/upx-ucl-3.96/src/stub/arm.v5a-linux.kernel.vmlinux.h Examining data/upx-ucl-3.96/src/stub/arm.v5a-linux.kernel.vmlinuz-head.h Examining data/upx-ucl-3.96/src/stub/arm.v5a-linux.kernel.vmlinuz.h Examining data/upx-ucl-3.96/src/stub/arm.v5a-linux.shlib-init.h Examining data/upx-ucl-3.96/src/stub/arm.v5t-linux.shlib-init.h Examining data/upx-ucl-3.96/src/stub/arm64-darwin.macho-entry.h Examining data/upx-ucl-3.96/src/stub/arm64-darwin.macho-fold.h Examining data/upx-ucl-3.96/src/stub/arm64-linux.elf-entry.h Examining data/upx-ucl-3.96/src/stub/arm64-linux.elf-fold.h Examining data/upx-ucl-3.96/src/stub/arm64-linux.shlib-init.h Examining data/upx-ucl-3.96/src/stub/armeb.v4a-linux.elf-entry.h Examining data/upx-ucl-3.96/src/stub/armeb.v4a-linux.elf-fold.h Examining data/upx-ucl-3.96/src/stub/armeb.v5a-linux.kernel.vmlinux-head.h Examining data/upx-ucl-3.96/src/stub/armeb.v5a-linux.kernel.vmlinux.h Examining data/upx-ucl-3.96/src/stub/i086-dos16.com.h Examining data/upx-ucl-3.96/src/stub/i086-dos16.exe.h Examining data/upx-ucl-3.96/src/stub/i086-dos16.sys.h Examining data/upx-ucl-3.96/src/stub/i386-bsd.elf-entry.h Examining data/upx-ucl-3.96/src/stub/i386-bsd.elf-fold.h Examining data/upx-ucl-3.96/src/stub/i386-bsd.elf.execve-entry.h Examining data/upx-ucl-3.96/src/stub/i386-bsd.elf.execve-fold.h Examining data/upx-ucl-3.96/src/stub/i386-darwin.dylib-entry.h Examining data/upx-ucl-3.96/src/stub/i386-darwin.macho-entry.h Examining data/upx-ucl-3.96/src/stub/i386-darwin.macho-fold.h Examining data/upx-ucl-3.96/src/stub/i386-darwin.macho-upxmain.h Examining data/upx-ucl-3.96/src/stub/i386-dos32.djgpp2-stubify.h Examining data/upx-ucl-3.96/src/stub/i386-dos32.djgpp2.h Examining data/upx-ucl-3.96/src/stub/i386-dos32.tmt.h Examining data/upx-ucl-3.96/src/stub/i386-dos32.watcom.le.h Examining data/upx-ucl-3.96/src/stub/i386-linux.elf-entry.h Examining data/upx-ucl-3.96/src/stub/i386-linux.elf-fold.h Examining data/upx-ucl-3.96/src/stub/i386-linux.elf.execve-entry.h Examining data/upx-ucl-3.96/src/stub/i386-linux.elf.execve-fold.h Examining data/upx-ucl-3.96/src/stub/i386-linux.elf.interp-entry.h Examining data/upx-ucl-3.96/src/stub/i386-linux.elf.interp-fold.h Examining data/upx-ucl-3.96/src/stub/i386-linux.elf.shell-entry.h Examining data/upx-ucl-3.96/src/stub/i386-linux.elf.shell-fold.h Examining data/upx-ucl-3.96/src/stub/i386-linux.kernel.vmlinux-head.h Examining data/upx-ucl-3.96/src/stub/i386-linux.kernel.vmlinux.h Examining data/upx-ucl-3.96/src/stub/i386-linux.kernel.vmlinuz.h Examining data/upx-ucl-3.96/src/stub/i386-linux.shlib-init.h Examining data/upx-ucl-3.96/src/stub/i386-netbsd.elf-entry.h Examining data/upx-ucl-3.96/src/stub/i386-netbsd.elf-fold.h Examining data/upx-ucl-3.96/src/stub/i386-openbsd.elf-fold.h Examining data/upx-ucl-3.96/src/stub/i386-win32.pe.h Examining data/upx-ucl-3.96/src/stub/m68k-atari.tos.h Examining data/upx-ucl-3.96/src/stub/mips.r3000-linux.elf-entry.h Examining data/upx-ucl-3.96/src/stub/mips.r3000-linux.elf-fold.h Examining data/upx-ucl-3.96/src/stub/mips.r3000-linux.shlib-init.h Examining data/upx-ucl-3.96/src/stub/mipsel.r3000-linux.elf-entry.h Examining data/upx-ucl-3.96/src/stub/mipsel.r3000-linux.elf-fold.h Examining data/upx-ucl-3.96/src/stub/mipsel.r3000-linux.shlib-init.h Examining data/upx-ucl-3.96/src/stub/mipsel.r3000-ps1.h Examining data/upx-ucl-3.96/src/stub/powerpc-darwin.dylib-entry.h Examining data/upx-ucl-3.96/src/stub/powerpc-darwin.macho-entry.h Examining data/upx-ucl-3.96/src/stub/powerpc-darwin.macho-fold.h Examining data/upx-ucl-3.96/src/stub/powerpc-darwin.macho-upxmain.h Examining data/upx-ucl-3.96/src/stub/powerpc-linux.elf-entry.h Examining data/upx-ucl-3.96/src/stub/powerpc-linux.elf-fold.h Examining data/upx-ucl-3.96/src/stub/powerpc-linux.kernel.vmlinux-head.h Examining data/upx-ucl-3.96/src/stub/powerpc-linux.kernel.vmlinux.h Examining data/upx-ucl-3.96/src/stub/powerpc64-linux.elf-entry.h Examining data/upx-ucl-3.96/src/stub/powerpc64-linux.elf-fold.h Examining data/upx-ucl-3.96/src/stub/powerpc64le-darwin.dylib-entry.h Examining data/upx-ucl-3.96/src/stub/powerpc64le-darwin.macho-entry.h Examining data/upx-ucl-3.96/src/stub/powerpc64le-darwin.macho-fold.h Examining data/upx-ucl-3.96/src/stub/powerpc64le-linux.elf-entry.h Examining data/upx-ucl-3.96/src/stub/powerpc64le-linux.elf-fold.h Examining data/upx-ucl-3.96/src/stub/powerpc64le-linux.kernel.vmlinux-head.h Examining data/upx-ucl-3.96/src/stub/powerpc64le-linux.kernel.vmlinux.h Examining data/upx-ucl-3.96/src/stub/src/amd64-darwin.macho-main.c Examining data/upx-ucl-3.96/src/stub/src/amd64-darwin.macho-upxmain.c Examining data/upx-ucl-3.96/src/stub/src/arch/amd64/regs.h Examining data/upx-ucl-3.96/src/stub/src/arch/i086/cc_test.c Examining data/upx-ucl-3.96/src/stub/src/arch/i086/l_test.c Examining data/upx-ucl-3.96/src/stub/src/arch/i086/lzma_m.h Examining data/upx-ucl-3.96/src/stub/src/arch/powerpc/32/ppc_regs.h Examining data/upx-ucl-3.96/src/stub/src/arch/powerpc/64/ppc_regs.h Examining data/upx-ucl-3.96/src/stub/src/arch/powerpc/64le/ppc_regs.h Examining data/upx-ucl-3.96/src/stub/src/arm.v4a-linux.elf-main.c Examining data/upx-ucl-3.96/src/stub/src/arm.v5a-darwin.macho-main.c Examining data/upx-ucl-3.96/src/stub/src/arm64-darwin.macho-main.c Examining data/upx-ucl-3.96/src/stub/src/arm64-linux.elf-main.c Examining data/upx-ucl-3.96/src/stub/src/armeb.v4a-linux.elf-main.c Examining data/upx-ucl-3.96/src/stub/src/armel-linux.elf-main.c Examining data/upx-ucl-3.96/src/stub/src/c/lzma_d_c.c Examining data/upx-ucl-3.96/src/stub/src/i386-bsd.elf-main.c Examining data/upx-ucl-3.96/src/stub/src/i386-bsd.elf.execve-main.c Examining data/upx-ucl-3.96/src/stub/src/i386-darwin.macho-main.c Examining data/upx-ucl-3.96/src/stub/src/i386-darwin.macho-upxmain.c Examining data/upx-ucl-3.96/src/stub/src/i386-linux.elf-main.c Examining data/upx-ucl-3.96/src/stub/src/i386-linux.elf.execve-main.c Examining data/upx-ucl-3.96/src/stub/src/i386-linux.elf.interp-main.c Examining data/upx-ucl-3.96/src/stub/src/i386-linux.elf.shell-main.c Examining data/upx-ucl-3.96/src/stub/src/i386-openbsd.elf-main.c Examining data/upx-ucl-3.96/src/stub/src/include/bsd.h Examining data/upx-ucl-3.96/src/stub/src/include/darwin.h Examining data/upx-ucl-3.96/src/stub/src/include/linux.h Examining data/upx-ucl-3.96/src/stub/src/mips.r3000-linux.elf-main.c Examining data/upx-ucl-3.96/src/stub/src/mipsel.r3000-linux.elf-main.c Examining data/upx-ucl-3.96/src/stub/src/powerpc-darwin.macho-main.c Examining data/upx-ucl-3.96/src/stub/src/powerpc-darwin.macho-upxmain.c Examining data/upx-ucl-3.96/src/stub/src/powerpc-linux.elf-main.c Examining data/upx-ucl-3.96/src/stub/src/powerpc64-darwin.macho-main.c Examining data/upx-ucl-3.96/src/stub/src/powerpc64-linux.elf-main.c Examining data/upx-ucl-3.96/src/stub/src/powerpc64le-darwin.macho-main.c Examining data/upx-ucl-3.96/src/stub/src/powerpc64le-linux.elf-main.c Examining data/upx-ucl-3.96/src/stub/src/amd64-linux.elf-main.c Examining data/upx-ucl-3.96/src/stub/tools/armpe/armpe_tester.c Examining data/upx-ucl-3.96/src/stub/tools/sstrip/sstrip.c Examining data/upx-ucl-3.96/src/ui.cpp Examining data/upx-ucl-3.96/src/ui.h Examining data/upx-ucl-3.96/src/util.cpp Examining data/upx-ucl-3.96/src/util.h Examining data/upx-ucl-3.96/src/version.h Examining data/upx-ucl-3.96/src/work.cpp Examining data/upx-ucl-3.96/src/p_lx_elf.cpp FINAL RESULTS: data/upx-ucl-3.96/src/file.cpp:38:12: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. void File::chmod(const char *name, int mode) data/upx-ucl-3.96/src/file.cpp:41:11: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if (::chmod(name,mode) != 0) data/upx-ucl-3.96/src/file.h:45:17: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. static void chmod(const char *name, int mode); data/upx-ucl-3.96/src/work.cpp:128:21: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. r = chmod(tname, 0777); data/upx-ucl-3.96/src/work.cpp:193:17: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. r = chmod(iname, 0777); data/upx-ucl-3.96/src/work.cpp:225:17: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. r = chmod(name, st.st_mode); data/upx-ucl-3.96/src/work.cpp:232:17: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. r = chown(name, st.st_uid, st.st_gid); data/upx-ucl-3.96/src/work.cpp:249:13: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. r = chmod(oname, 0777); data/upx-ucl-3.96/src/console.h:127:35: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((__format__(printf,2,3))); data/upx-ucl-3.96/src/console.h:186:25: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define con_fprintf fprintf data/upx-ucl-3.96/src/linker.cpp:48:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(buf, sizeof(buf), format, ap); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zMain.c:153:11: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(testCommand ? data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_Alone/LzmaAlone.cpp:447:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, kWriteError); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_Alone/LzmaAlone.cpp:473:7: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, kReadError); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_Alone/LzmaAlone.cpp:478:7: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, kReadError); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_Alone/LzmaAlone.cpp:492:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, kReadError); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_Alone/LzmaAlone.cpp:497:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, kReadError); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_Alone/LzmaBench.cpp:366:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(f, s); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateTest.c:34:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buffer + strlen(buffer), message); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateTest.c:193:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(rs); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTest.c:67:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buffer + strlen(buffer), message); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTest.c:340:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(rs); data/upx-ucl-3.96/src/main.cpp:101:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, f, a->ap); data/upx-ucl-3.96/src/mem.cpp:82:24: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. char buf[100]; snprintf(buf, sizeof(buf), errfmt, skip, take); data/upx-ucl-3.96/src/miniacc.h:3785:11: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/upx-ucl-3.96/src/miniacc.h:3785:20: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/upx-ucl-3.96/src/miniacc.h:3786:11: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define vsnprintf _vsnprintf data/upx-ucl-3.96/src/miniacc.h:3795:11: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # ifndef snprintf data/upx-ucl-3.96/src/miniacc.h:3796:11: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/upx-ucl-3.96/src/miniacc.h:3796:20: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/upx-ucl-3.96/src/miniacc.h:3798:11: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # ifndef vsnprintf data/upx-ucl-3.96/src/miniacc.h:3799:11: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define vsnprintf _vsnprintf data/upx-ucl-3.96/src/miniacc.h:3805:11: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # ifndef snprintf data/upx-ucl-3.96/src/miniacc.h:3806:11: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/upx-ucl-3.96/src/miniacc.h:3806:20: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/upx-ucl-3.96/src/miniacc.h:3808:11: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # ifndef vsnprintf data/upx-ucl-3.96/src/miniacc.h:3809:11: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define vsnprintf _vsnprintf data/upx-ucl-3.96/src/miniacc.h:3821:13: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # ifndef snprintf data/upx-ucl-3.96/src/miniacc.h:3822:13: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/upx-ucl-3.96/src/miniacc.h:3822:22: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/upx-ucl-3.96/src/miniacc.h:3824:13: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # ifndef vsnprintf data/upx-ucl-3.96/src/miniacc.h:3825:13: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define vsnprintf _vsnprintf data/upx-ucl-3.96/src/miniacc.h:3828:13: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # ifndef snprintf data/upx-ucl-3.96/src/miniacc.h:3829:13: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/upx-ucl-3.96/src/miniacc.h:3829:22: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/upx-ucl-3.96/src/miniacc.h:3844:13: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/upx-ucl-3.96/src/miniacc.h:3844:22: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/upx-ucl-3.96/src/miniacc.h:3845:13: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define vsnprintf _vsnprintf data/upx-ucl-3.96/src/miniacc.h:3878:11: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/upx-ucl-3.96/src/miniacc.h:3878:20: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/upx-ucl-3.96/src/miniacc.h:3879:11: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define vsnprintf _vsnprintf data/upx-ucl-3.96/src/miniacc.h:3891:13: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/upx-ucl-3.96/src/miniacc.h:3891:22: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/upx-ucl-3.96/src/miniacc.h:3892:13: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define vsnprintf _vsnprintf data/upx-ucl-3.96/src/miniacc.h:3921:13: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/upx-ucl-3.96/src/miniacc.h:3921:22: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/upx-ucl-3.96/src/miniacc.h:3922:13: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define vsnprintf _vsnprintf data/upx-ucl-3.96/src/pefile.cpp:1184:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(enamep,ename); data/upx-ucl-3.96/src/pefile.cpp:1189:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(exports,names[ic]); data/upx-ucl-3.96/src/pefile.cpp:1198:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(exports,names[edir.names + ic]); data/upx-ucl-3.96/src/pefile.cpp:2497:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(osection[2].name, !last_section_rsrc_only && soresources ? ".rsrc" : "UPX2"); data/upx-ucl-3.96/src/pefile.cpp:2822:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(dllnames, dname); data/upx-ucl-3.96/src/pefile.cpp:2830:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(Obuf + im->dllname, dname); data/upx-ucl-3.96/src/pefile.cpp:2855:21: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(Obuf + (*newiat + 2), p); data/upx-ucl-3.96/src/snprintf.cpp:855:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/upx-ucl-3.96/src/snprintf.cpp:860:8: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #undef snprintf data/upx-ucl-3.96/src/snprintf.cpp:861:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf upx_snprintf data/upx-ucl-3.96/src/snprintf.cpp:926:22: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int l1 = snprintf(NULL, 0, fp_fmt[x], fp_nums[y]); data/upx-ucl-3.96/src/snprintf.cpp:927:22: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int l2 = snprintf(buf1, sizeof(buf1), fp_fmt[x], fp_nums[y]); data/upx-ucl-3.96/src/snprintf.cpp:928:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (buf2, fp_fmt[x], fp_nums[y]); data/upx-ucl-3.96/src/snprintf.cpp:944:22: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int l1 = snprintf(0, 0, int_fmt[x], int_nums[y]); data/upx-ucl-3.96/src/snprintf.cpp:945:22: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int l2 = snprintf(buf1, sizeof(buf1), int_fmt[x], int_nums[y]); data/upx-ucl-3.96/src/snprintf.cpp:946:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (buf2, int_fmt[x], int_nums[y]); data/upx-ucl-3.96/src/snprintf.cpp:962:22: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int l1 = snprintf(NULL, 0, str_fmt[x], str_vals[y]); data/upx-ucl-3.96/src/snprintf.cpp:963:22: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int l2 = snprintf(buf1, sizeof(buf1), str_fmt[x], str_vals[y]); data/upx-ucl-3.96/src/snprintf.cpp:964:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (buf2, str_fmt[x], str_vals[y]); data/upx-ucl-3.96/src/snprintf.h:52:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/upx-ucl-3.96/src/snprintf.h:53:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define sprintf error_sprintf_is_dangerous_use_snprintf data/upx-ucl-3.96/src/snprintf.h:61:23: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). inline unsigned char *strcpy(unsigned char *s1, const unsigned char *s2) { data/upx-ucl-3.96/src/snprintf.h:62:30: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). return (unsigned char *) strcpy((char *) s1, (const char *) s2); data/upx-ucl-3.96/src/stub/src/arch/i086/l_test.c:41:18: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. int __cdecl printf(const char *, ...); data/upx-ucl-3.96/src/stub/src/arch/i086/l_test.c:50:20: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. int __watcall printf(const char *, ...); data/upx-ucl-3.96/src/stub/src/arch/i086/l_test.c:57:11: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define printf __builtin_printf data/upx-ucl-3.96/src/stub/src/i386-bsd.elf.execve-main.c:179:32: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (UPX2 == (unsigned) access(procself_buf, R_OK | X_OK)) { data/upx-ucl-3.96/src/stub/src/i386-linux.elf.execve-main.c:182:32: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (UPX2 == (unsigned) access(procself_buf, R_OK | X_OK)) { data/upx-ucl-3.96/src/stub/src/include/bsd.h:140:5: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. int access(char const *, int); data/upx-ucl-3.96/src/stub/src/include/linux.h:344:29: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static inline _syscall2(int,access,const char *,file,int,mode) data/upx-ucl-3.96/src/stub/tools/armpe/armpe_tester.c:178:11: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ret = fprintf(out, format, ap); data/upx-ucl-3.96/src/stub/tools/armpe/armpe_tester.c:184:15: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define print printf data/upx-ucl-3.96/src/ui.cpp:246:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(&s->msg_buf[s->bar_pos], fname); data/upx-ucl-3.96/src/util.cpp:449:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ofilename, ifilename); data/upx-ucl-3.96/src/util.cpp:456:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ofext, ext); data/upx-ucl-3.96/src/util.cpp:478:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ofilename, ifilename); data/upx-ucl-3.96/src/work.cpp:121:17: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tname, opt->output_name); data/upx-ucl-3.96/src/work.cpp:151:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(oname, tname); data/upx-ucl-3.96/src/main.cpp:1149:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. var = getenv(OPTIONS_VAR); data/upx-ucl-3.96/src/main.cpp:1477:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand((int) clock()); data/upx-ucl-3.96/src/main.cpp:1544:26: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *ee = getenv("UPX_DISABLE_GITREV_WARNING"); data/upx-ucl-3.96/src/miniacc.h:7635:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv(s); data/upx-ucl-3.96/src/bele.h:331:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char d[2]; data/upx-ucl-3.96/src/bele.h:349:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char d[4]; data/upx-ucl-3.96/src/bele.h:367:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char d[8]; data/upx-ucl-3.96/src/bele.h:385:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char d[2]; data/upx-ucl-3.96/src/bele.h:403:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char d[4]; data/upx-ucl-3.96/src/bele.h:421:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char d[8]; data/upx-ucl-3.96/src/c_init.cpp:148:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[80*25]; data/upx-ucl-3.96/src/c_screen.cpp:209:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char p[256+1]; data/upx-ucl-3.96/src/compress_lzma.cpp:502:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(b + src_off, buf + src_off, src_len); data/upx-ucl-3.96/src/compress_ucl.cpp:141:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char sizes[3] = {32, 8, 16}; data/upx-ucl-3.96/src/compress_zlib.cpp:205:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(b + src_off, buf + src_off, src_len); data/upx-ucl-3.96/src/file.cpp:94:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _fd = ::open(_name, _flags, _mode); data/upx-ucl-3.96/src/file.cpp:98:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _fd = ::open(_name,_flags | _shflags, _mode); data/upx-ucl-3.96/src/file.cpp:100:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _fd = ::open(_name,_flags | (_shflags & O_SHMODE), _mode); data/upx-ucl-3.96/src/file.cpp:467:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f.open(name, flags, 0600); data/upx-ucl-3.96/src/file.cpp:493:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(b + b_pos, buf, len); data/upx-ucl-3.96/src/file.h:97:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). virtual void open(const char *name, int flags) data/upx-ucl-3.96/src/file.h:129:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). virtual void open(const char *name, int flags, int mode) data/upx-ucl-3.96/src/file.h:170:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). virtual void open(void *buf, unsigned size) data/upx-ucl-3.96/src/filter.cpp:55:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char filter_map[256]; data/upx-ucl-3.96/src/filter/cto.h:52:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[256]; data/upx-ucl-3.96/src/filter/ctoj.h:56:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[256]; data/upx-ucl-3.96/src/filter/ctojr.h:130:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[256]; data/upx-ucl-3.96/src/filter/ctok.h:57:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[256]; data/upx-ucl-3.96/src/filter/ppcbxx.h:59:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[256]; data/upx-ucl-3.96/src/help.cpp:44:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char gitrev[1] = { 0 }; data/upx-ucl-3.96/src/lefile.cpp:280:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&oh,&ih,(char*)&oh.memory_pages-(char*)&oh); // copy some members of the orig. header data/upx-ucl-3.96/src/lefile.h:54:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _[2]; // signature: 'LE' || 'LX' data/upx-ucl-3.96/src/lefile.h:60:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _0[4]; // module_version = 0 data/upx-ucl-3.96/src/lefile.h:73:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _1[4]; // fixup_checksum = 0 data/upx-ucl-3.96/src/lefile.h:75:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _2[4]; // loader_checksum = 0 data/upx-ucl-3.96/src/lefile.h:82:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _3[4]; // resource_offset data/upx-ucl-3.96/src/lefile.h:87:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _4[4]; // module_directives_table_offset = 0 data/upx-ucl-3.96/src/lefile.h:95:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _5[4]; // per_page_checksum_table_offset = 0 data/upx-ucl-3.96/src/lefile.h:98:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _6[4]; // preload_page_count = 0 data/upx-ucl-3.96/src/lefile.h:102:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _7[4]; //non_resident_names_checksum data/upx-ucl-3.96/src/lefile.h:105:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _8[44]; data/upx-ucl-3.96/src/lefile.h:113:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char reserved[12]; data/upx-ucl-3.96/src/linker.cpp:44:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[1024]; data/upx-ucl-3.96/src/linker.cpp:65:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(input, i, s); data/upx-ucl-3.96/src/linker.cpp:66:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((char *) input)[s] = 0; data/upx-ucl-3.96/src/linker.cpp:155:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(input, pdata, inputlen); data/upx-ucl-3.96/src/linker.cpp:190:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[1024]; data/upx-ucl-3.96/src/linker.cpp:212:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char section[1024]; data/upx-ucl-3.96/src/linker.cpp:213:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char symbol[1024]; data/upx-ucl-3.96/src/linker.cpp:249:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sect[1024]; data/upx-ucl-3.96/src/linker.cpp:255:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char type[100]; data/upx-ucl-3.96/src/linker.cpp:256:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char symbol[1024]; data/upx-ucl-3.96/src/linker.cpp:404:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(output + outputlen, section->input, section->size); data/upx-ucl-3.96/src/linker.cpp:505:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char d0[16 + 1], d1[16 + 1]; data/upx-ucl-3.96/src/linker.cpp:516:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char d1[16 + 1]; data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zMain.c:91:24: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). archiveStream.File = fopen(args[2], "rb"); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zMain.c:181:26: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). outputHandle = fopen(fileName, "wb+"); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaDecode.h:97:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char TempDictionary[4]; data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateDecode.c:173:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char tempDictionary[4]; data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateDecode.h:67:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char Buffer[kLzmaInBufferSize]; data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateDecode.h:82:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char TempDictionary[4]; /* it's required when DictionarySize = 0 */ data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateTest.c:22:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char g_InBuffer[kInBufferSize]; data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateTest.c:23:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char g_OutBuffer[kOutBufferSize]; data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateTest.c:33:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer + strlen(buffer), "\nError: "); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateTest.c:53:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char properties[LZMA_PROPERTIES_SIZE]; data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateTest.c:123:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(rs + strlen(rs), "\nDecoding error = %d\n", res); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateTest.c:163:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(rs + strlen(rs), "\nLZMA Decoder 4.26 Copyright (c) 1999-2005 Igor Pavlov 2005-08-02\n"); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateTest.c:166:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(rs + strlen(rs), "\nUsage: lzmadec file.lzma [outFile]\n"); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateTest.c:170:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). inFile = fopen(args[1], "rb"); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateTest.c:176:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). outFile = fopen(args[2], "wb+"); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateTest.c:191:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rs[800] = { 0 }; data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTest.c:45:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char Buffer[kInBufferSize]; data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTest.c:61:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char g_OutBuffer[kOutBufferSize]; data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTest.c:66:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer + strlen(buffer), "\nError: "); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTest.c:93:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char properties[LZMA_PROPERTIES_SIZE]; data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTest.c:231:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(rs + strlen(rs), "\nDecoding error = %d\n", res); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTest.c:278:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(rs + strlen(rs), "\nDecoding error = %d\n", res); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTest.c:310:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(rs + strlen(rs), "\nLZMA Decoder 4.26 Copyright (c) 1999-2005 Igor Pavlov 2005-08-05\n"); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTest.c:313:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(rs + strlen(rs), "\nUsage: lzmadec file.lzma [outFile]\n"); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTest.c:317:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). inFile = fopen(args[1], "rb"); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTest.c:323:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). outFile = fopen(args[2], "wb+"); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTest.c:338:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rs[800] = { 0 }; data/upx-ucl-3.96/src/lzma-sdk/C/Common/C_FileIO.cpp:18:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _handle = ::open(name, flags, 0666); data/upx-ucl-3.96/src/lzma-sdk/C/Common/MyGuidDef.h:12:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char Data4[8]; data/upx-ucl-3.96/src/lzma-sdk/C/Common/String.cpp:26:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[kBufferSize + 1]; data/upx-ucl-3.96/src/lzma-sdk/C/Common/String.cpp:32:5: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). ::MultiByteToWideChar(CP_ACP, 0, s, numChars, &c, 1); data/upx-ucl-3.96/src/lzma-sdk/C/Common/String.cpp:44:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[kBufferSize + 1]; data/upx-ucl-3.96/src/lzma-sdk/C/Common/String.cpp:50:5: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). ::MultiByteToWideChar(CP_ACP, 0, s, numChars, &c, 1); data/upx-ucl-3.96/src/lzma-sdk/C/Common/StringConvert.cpp:17:20: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int numChars = MultiByteToWideChar(codePage, 0, srcString, data/upx-ucl-3.96/src/main.cpp:393:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char vopts[1024]; data/upx-ucl-3.96/src/main.cpp:602:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(opt->debug.fake_stub_version, mfx_optarg, 4); data/upx-ucl-3.96/src/main.cpp:607:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(opt->debug.fake_stub_year, mfx_optarg, 4); data/upx-ucl-3.96/src/main.cpp:1052:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char shortopts[256]; data/upx-ucl-3.96/src/main.cpp:1147:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char shortopts[256]; data/upx-ucl-3.96/src/main.cpp:1351:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char dd[32] data/upx-ucl-3.96/src/mem.cpp:82:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; snprintf(buf, sizeof(buf), errfmt, skip, take); data/upx-ucl-3.96/src/miniacc.h:1896:73: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. # define __acc_byte_struct(s,n) __acc_struct_packed(s) unsigned char a[n]; __acc_struct_packed_end() data/upx-ucl-3.96/src/miniacc.h:1897:76: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. # define __acc_byte_struct_ma(s,n) __acc_struct_packed_ma(s) unsigned char a[n]; __acc_struct_packed_ma_end() data/upx-ucl-3.96/src/miniacc.h:1899:61: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. # define __acc_byte_struct(s,n) struct s { unsigned char a[n]; } __attribute__((__packed__)); data/upx-ucl-3.96/src/miniacc.h:1900:61: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. # define __acc_byte_struct_ma(s,n) struct s { unsigned char a[n]; } __acc_may_alias __attribute__((__packed__)); data/upx-ucl-3.96/src/miniacc.h:5230:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char f_name[ACC_FN_NAME_MAX+1]; data/upx-ucl-3.96/src/miniacc.h:5236:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char f_name[ACC_FN_NAME_MAX+1]; data/upx-ucl-3.96/src/miniacc.h:5238:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char u_dta[21]; data/upx-ucl-3.96/src/miniacc.h:5244:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char f_name[ACC_FN_NAME_MAX+1]; data/upx-ucl-3.96/src/miniacc.h:5248:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char f_name[ACC_FN_NAME_MAX+1]; data/upx-ucl-3.96/src/miniacc.h:6414:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return memcpy(dest, src, len); data/upx-ucl-3.96/src/miniacc.h:7039:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char tmp[512]; data/upx-ucl-3.96/src/miniacc.h:7079:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char tmp[512]; data/upx-ucl-3.96/src/msg.cpp:47:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char clear_line_msg[1+79+1+1]; data/upx-ucl-3.96/src/msg.cpp:77:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/upx-ucl-3.96/src/msg.cpp:112:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/upx-ucl-3.96/src/msg.cpp:137:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/upx-ucl-3.96/src/msg.cpp:150:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/upx-ucl-3.96/src/msg.cpp:209:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/upx-ucl-3.96/src/msg.cpp:223:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/upx-ucl-3.96/src/msg.cpp:241:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/upx-ucl-3.96/src/options.h:90:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fake_stub_version[4+1]; // for internal debugging data/upx-ucl-3.96/src/options.h:91:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fake_stub_year[4+1]; // for internal debugging data/upx-ucl-3.96/src/options.h:159:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. signed char compress_rt[25]; // 25 == RT_LAST data/upx-ucl-3.96/src/p_com.cpp:72:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[128]; data/upx-ucl-3.96/src/p_com.cpp:204:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(loader,getLoader(),lsize); data/upx-ucl-3.96/src/p_djgpp2.cpp:143:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[4]; data/upx-ucl-3.96/src/p_djgpp2.cpp:164:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[0x4000]; data/upx-ucl-3.96/src/p_djgpp2.cpp:191:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char hdr[0x1c]; data/upx-ucl-3.96/src/p_djgpp2.cpp:192:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char magic[8]; data/upx-ucl-3.96/src/p_djgpp2.cpp:346:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(obuf+data->size, "UPX", 3); data/upx-ucl-3.96/src/p_djgpp2.cpp:354:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(loader, getLoader(), lsize); data/upx-ucl-3.96/src/p_djgpp2.cpp:435:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ctobuf[4]; data/upx-ucl-3.96/src/p_djgpp2.h:70:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _[12]; // name, paddr data/upx-ucl-3.96/src/p_djgpp2.h:74:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char misc[12]; // relptr, lnnoptr, nreloc, nlnno data/upx-ucl-3.96/src/p_djgpp2.h:75:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char __[4]; // flags data/upx-ucl-3.96/src/p_djgpp2.h:82:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _[4]; // f_timdat data/upx-ucl-3.96/src/p_djgpp2.h:85:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char __[2]; // f_opthdr data/upx-ucl-3.96/src/p_djgpp2.h:90:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ___[2]; // a_vstamp data/upx-ucl-3.96/src/p_djgpp2.h:93:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ____[4]; // a_bsize data/upx-ucl-3.96/src/p_djgpp2.h:95:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _____[8]; // a_text_start a_data_start data/upx-ucl-3.96/src/p_elf.h:61:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_ident[16]; /* Magic number and other info */ data/upx-ucl-3.96/src/p_exe.cpp:193:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(loader, getLoader(), lsize); data/upx-ucl-3.96/src/p_exe.cpp:536:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(loader,getLoader(),lsize); data/upx-ucl-3.96/src/p_exe.cpp:557:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char extra_info[9]; data/upx-ucl-3.96/src/p_exe.cpp:632:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(loader, getLoader(), lsize); data/upx-ucl-3.96/src/p_exe.h:87:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _[2]; // checksum data/upx-ucl-3.96/src/p_exe.h:91:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char __[2]; // overlnum data/upx-ucl-3.96/src/p_lx_elf.cpp:430:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((unsigned char *)ibuf, phdr, sizeof(*phdr)); // extract data/upx-ucl-3.96/src/p_lx_elf.cpp:432:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&phdr[e_phnum - (1+ j)], (unsigned char *)ibuf, sizeof(*phdr)); // to top data/upx-ucl-3.96/src/p_lx_elf.cpp:555:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((unsigned char *)ibuf, phdr, sizeof(*phdr)); // extract data/upx-ucl-3.96/src/p_lx_elf.cpp:557:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&phdr[e_phnum - (1+ j)], (unsigned char *)ibuf, sizeof(*phdr)); // to top data/upx-ucl-3.96/src/p_lx_elf.cpp:1178:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cprLoader, &h, sizeof(h)); data/upx-ucl-3.96/src/p_lx_elf.cpp:1247:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cprLoader, &h, sizeof(h)); data/upx-ucl-3.96/src/p_lx_elf.cpp:1286:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char tmp[sizeof(stub_i386_linux_elf_fold)]; data/upx-ucl-3.96/src/p_lx_elf.cpp:1287:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, stub_i386_linux_elf_fold, sizeof(stub_i386_linux_elf_fold)); data/upx-ucl-3.96/src/p_lx_elf.cpp:1314:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char tmp[sizeof(stub_i386_bsd_elf_fold)]; data/upx-ucl-3.96/src/p_lx_elf.cpp:1315:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, stub_i386_bsd_elf_fold, sizeof(stub_i386_bsd_elf_fold)); data/upx-ucl-3.96/src/p_lx_elf.cpp:1346:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char tmp[sizeof(stub_i386_netbsd_elf_fold)]; data/upx-ucl-3.96/src/p_lx_elf.cpp:1347:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, stub_i386_netbsd_elf_fold, sizeof(stub_i386_netbsd_elf_fold)); data/upx-ucl-3.96/src/p_lx_elf.cpp:1372:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char tmp[sizeof(stub_i386_openbsd_elf_fold)]; data/upx-ucl-3.96/src/p_lx_elf.cpp:1373:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, stub_i386_openbsd_elf_fold, sizeof(stub_i386_openbsd_elf_fold)); data/upx-ucl-3.96/src/p_lx_elf.cpp:1584:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:1604:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:1618:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:1634:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[40]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:1650:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[90]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:1661:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[40]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:1687:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[90]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:1696:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[40]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:1736:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:1760:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:1809:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[70]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:1819:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[70]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:1846:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[70]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:1856:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[70]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:1887:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[sizeof(Elf32_Ehdr) + 14*sizeof(Elf32_Phdr)]; data/upx-ucl-3.96/src/p_lx_elf.cpp:1952:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[8]; data/upx-ucl-3.96/src/p_lx_elf.cpp:2006:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ehdri, ehdr, sizeof(Elf32_Ehdr)); data/upx-ucl-3.96/src/p_lx_elf.cpp:2016:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[40]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:2023:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:2033:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:2133:29: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[70]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:2158:41: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:2176:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[70]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:2242:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[30]; snprintf(buf, sizeof(buf), "%s above stub", which[y]); data/upx-ucl-3.96/src/p_lx_elf.cpp:2252:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[40]; snprintf(buf, sizeof(buf), data/upx-ucl-3.96/src/p_lx_elf.cpp:2288:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[sizeof(Elf64_Ehdr) + 14*sizeof(Elf64_Phdr)]; data/upx-ucl-3.96/src/p_lx_elf.cpp:2356:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&ehdri, ehdr, sizeof(Elf64_Ehdr)); data/upx-ucl-3.96/src/p_lx_elf.cpp:2366:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[40]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:2373:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:2383:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:2474:29: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[70]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:2503:41: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:2521:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[70]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:2587:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[30]; snprintf(buf, sizeof(buf), "%s above stub", which[y]); data/upx-ucl-3.96/src/p_lx_elf.cpp:2597:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[40]; snprintf(buf, sizeof(buf), data/upx-ucl-3.96/src/p_lx_elf.cpp:2683:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h3, proto, sizeof(*h3)); // reads beyond, but OK data/upx-ucl-3.96/src/p_lx_elf.cpp:2709:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&h2->phdr[phnum_o++], gnu_stack, sizeof(*gnu_stack)); data/upx-ucl-3.96/src/p_lx_elf.cpp:2858:24: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (sz_NetBSD) memcpy(&((char *)phdr)[0], np_NetBSD, sz_NetBSD); data/upx-ucl-3.96/src/p_lx_elf.cpp:2858:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. if (sz_NetBSD) memcpy(&((char *)phdr)[0], np_NetBSD, sz_NetBSD); data/upx-ucl-3.96/src/p_lx_elf.cpp:2859:24: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (sz_PaX) memcpy(&((char *)phdr)[sz_NetBSD], np_PaX, sz_PaX); data/upx-ucl-3.96/src/p_lx_elf.cpp:2859:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. if (sz_PaX) memcpy(&((char *)phdr)[sz_NetBSD], np_PaX, sz_PaX); data/upx-ucl-3.96/src/p_lx_elf.cpp:2862:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. &((char *)phdr)[sz_PaX + sz_NetBSD] - (char *)&elfout.phdr[2]); data/upx-ucl-3.96/src/p_lx_elf.cpp:2880:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h3, proto, sizeof(*h3)); // reads beyond, but OK data/upx-ucl-3.96/src/p_lx_elf.cpp:2895:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[8]; data/upx-ucl-3.96/src/p_lx_elf.cpp:2951:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h3, proto, sizeof(*h3)); // reads beyond, but OK data/upx-ucl-3.96/src/p_lx_elf.cpp:2982:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&h2->phdr[phnum_o++], gnu_stack, sizeof(*gnu_stack)); data/upx-ucl-3.96/src/p_lx_elf.cpp:3120:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(lowmem, file_image, xct_off); // android omits Shdr here data/upx-ucl-3.96/src/p_lx_elf.cpp:3165:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf_notes[512]; memset(buf_notes, 0, sizeof(buf_notes)); data/upx-ucl-3.96/src/p_lx_elf.cpp:3180:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&buf_notes[len_notes], &file_image[offset], memsz); data/upx-ucl-3.96/src/p_lx_elf.cpp:3201:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&lowmem[xct_off], shdri, e_shnum * sizeof(Elf32_Shdr)); data/upx-ucl-3.96/src/p_lx_elf.cpp:3218:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; data/upx-ucl-3.96/src/p_lx_elf.cpp:3260:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; data/upx-ucl-3.96/src/p_lx_elf.cpp:3280:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[90]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:3314:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&buf_notes[len_notes], &file_image[sh_offset], sh_size); data/upx-ucl-3.96/src/p_lx_elf.cpp:3422:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&h3, stub_arm_v5a_linux_elf_fold, sizeof(Elf32_Ehdr) + 2*sizeof(Elf32_Phdr)); data/upx-ucl-3.96/src/p_lx_elf.cpp:3427:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&h3, stub_arm_v4a_linux_elf_fold, sizeof(Elf32_Ehdr) + 2*sizeof(Elf32_Phdr)); data/upx-ucl-3.96/src/p_lx_elf.cpp:3431:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&h3.ehdr.e_ident[0], &ehdri.e_ident[0], sizeof(ehdri.e_ident)); data/upx-ucl-3.96/src/p_lx_elf.cpp:3443:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&h3, stub_armeb_v4a_linux_elf_fold, sizeof(Elf32_Ehdr) + 2*sizeof(Elf32_Phdr)); data/upx-ucl-3.96/src/p_lx_elf.cpp:3454:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&h3, stub_mipsel_r3000_linux_elf_fold, sizeof(Elf32_Ehdr) + 2*sizeof(Elf32_Phdr)); data/upx-ucl-3.96/src/p_lx_elf.cpp:3464:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&h3, stub_mips_r3000_linux_elf_fold, sizeof(Elf32_Ehdr) + 2*sizeof(Elf32_Phdr)); data/upx-ucl-3.96/src/p_lx_elf.cpp:3539:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(lowmem, file_image, xct_off); // android omits Shdr here data/upx-ucl-3.96/src/p_lx_elf.cpp:3584:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf_notes[512]; memset(buf_notes, 0, sizeof(buf_notes)); data/upx-ucl-3.96/src/p_lx_elf.cpp:3599:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&buf_notes[len_notes], &file_image[offset], memsz); data/upx-ucl-3.96/src/p_lx_elf.cpp:3620:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&lowmem[xct_off], shdri, e_shnum * sizeof(Elf64_Shdr)); data/upx-ucl-3.96/src/p_lx_elf.cpp:3636:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; data/upx-ucl-3.96/src/p_lx_elf.cpp:3655:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[90]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:3686:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; data/upx-ucl-3.96/src/p_lx_elf.cpp:3718:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&buf_notes[len_notes], &file_image[sh_offset], sh_size); data/upx-ucl-3.96/src/p_lx_elf.cpp:4127:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char interp[64]; data/upx-ucl-3.96/src/p_lx_elf.cpp:4897:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[40]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:4921:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; snprintf(msg, sizeof(msg), "bad PT_LOAD phdr[%u]", data/upx-ucl-3.96/src/p_lx_elf.cpp:4952:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; snprintf(msg, sizeof(msg), "bad PT_DYNAMIC phdr[%u]", data/upx-ucl-3.96/src/p_lx_elf.cpp:4998:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[40]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:5022:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; snprintf(msg, sizeof(msg), "bad PT_LOAD phdr[%u]", data/upx-ucl-3.96/src/p_lx_elf.cpp:5053:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; snprintf(msg, sizeof(msg), "bad PT_DYNAMIC phdr[%u]", data/upx-ucl-3.96/src/p_lx_elf.cpp:5073:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:5082:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:5102:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:5118:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:5134:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[40]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:5150:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[90]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:5161:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[40]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:5187:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[90]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.cpp:5196:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[40]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/p_lx_elf.h:218:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char notes[512]; data/upx-ucl-3.96/src/p_lx_exc.cpp:137:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h3, proto, sizeof(*h3)); // reads beyond, but OK data/upx-ucl-3.96/src/p_lx_exc.cpp:406:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, stub_i386_linux_elf_execve_fold, sz_fold); data/upx-ucl-3.96/src/p_lx_exc.cpp:426:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, stub_i386_bsd_elf_execve_fold, sz_fold); data/upx-ucl-3.96/src/p_lx_exc.cpp:532:30: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf2[512]; data/upx-ucl-3.96/src/p_lx_exc.h:114:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[0x18 - 4*4]; // "OpenBSD" data/upx-ucl-3.96/src/p_lx_interp.cpp:92:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h3.ehdr.e_ident, "\177ELF", 4); data/upx-ucl-3.96/src/p_lx_interp.cpp:113:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&h3.phdr[2].p_vaddr, "/upxrun", h3.phdr[2].p_filesz = 8); data/upx-ucl-3.96/src/p_lx_interp.cpp:202:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[MAX_INTERP_HDR]; data/upx-ucl-3.96/src/p_lx_sh.cpp:79:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, stub_i386_linux_elf_shell_fold, sz_fold); data/upx-ucl-3.96/src/p_lx_sh.cpp:140:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[512]; data/upx-ucl-3.96/src/p_mach.cpp:400:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cprLoader, &h, sizeof(h)); data/upx-ucl-3.96/src/p_mach.cpp:503:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char page[~PAGE_MASK]; memset(page, 0, sizeof(page)); data/upx-ucl-3.96/src/p_mach.cpp:528:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(upxstub, stub_main, sz_stub_main); data/upx-ucl-3.96/src/p_mach.cpp:556:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tail, &segTEXT, sz_cmd); tail += sz_cmd; data/upx-ucl-3.96/src/p_mach.cpp:574:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tail, &segLINK, sz_cmd); tail += sz_cmd; data/upx-ucl-3.96/src/p_mach.cpp:640:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(lcp, &cmdSRCVER, sizeof(cmdSRCVER)); data/upx-ucl-3.96/src/p_mach.cpp:646:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(lcp, &cmdVERMIN, sizeof(cmdVERMIN)); data/upx-ucl-3.96/src/p_mach.cpp:1422:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&msegcmd[j], ptr, umin(sizeof(Mach_segment_command), data/upx-ucl-3.96/src/p_mach.cpp:1793:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; snprintf(buf, sizeof(buf), "bad sizeofcmds %d", sz_mhcmds); data/upx-ucl-3.96/src/p_mach.cpp:1811:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; snprintf(buf, sizeof(buf), data/upx-ucl-3.96/src/p_mach.cpp:1824:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&msegcmd[j], ptr, 2*sizeof(unsigned)); // cmd and cmdsize data/upx-ucl-3.96/src/p_mach.cpp:1878:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[256]; data/upx-ucl-3.96/src/p_mach.cpp:2373:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[256]; data/upx-ucl-3.96/src/p_mach.h:124:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/upx-ucl-3.96/src/p_mach.h:143:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sectname[16]; data/upx-ucl-3.96/src/p_mach.h:144:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/upx-ucl-3.96/src/p_mach.h:166:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sectname[16]; data/upx-ucl-3.96/src/p_mach.h:167:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/upx-ucl-3.96/src/p_mach.h:305:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char uuid[16]; data/upx-ucl-3.96/src/p_ps1.cpp:145:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[sizeof(bh)]; data/upx-ucl-3.96/src/p_ps1.cpp:175:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, cpr_bh, SZ_IH_BKUP); data/upx-ucl-3.96/src/p_ps1.cpp:205:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, unc_bh, SZ_IH_BKUP); data/upx-ucl-3.96/src/p_ps1.cpp:251:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[PS_HDR_SIZE - sizeof(ps1_exe_t)]; data/upx-ucl-3.96/src/p_ps1.cpp:356:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char pad_buffer[4] = { 0, 0, 0, 0 }; data/upx-ucl-3.96/src/p_ps1.cpp:535:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&oh, &ih, sizeof(ih)); data/upx-ucl-3.96/src/p_ps1.cpp:639:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(loader, getLoader(), lsize); data/upx-ucl-3.96/src/p_ps1.cpp:678:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char method_name[32+1]; set_method_name(method_name, sizeof(method_name), ph.method, ph.level); data/upx-ucl-3.96/src/p_ps1.cpp:711:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&oh, &ih, sizeof(ih)); data/upx-ucl-3.96/src/p_ps1.cpp:712:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((void *) &oh.epc, &bh, SZ_IH_BKUP); data/upx-ucl-3.96/src/p_ps1.h:72:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id[8]; data/upx-ucl-3.96/src/p_ps1.h:90:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char origin[60]; data/upx-ucl-3.96/src/p_sys.cpp:47:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[128]; data/upx-ucl-3.96/src/p_tmt.cpp:124:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char h[0x40]; data/upx-ucl-3.96/src/p_tmt.cpp:235:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ibuf+usize,wrkmem,relocsize); data/upx-ucl-3.96/src/p_tmt.cpp:269:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(loader,getLoader(),lsize); data/upx-ucl-3.96/src/p_tmt.cpp:282:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rel_entry[4]; data/upx-ucl-3.96/src/p_tmt.h:70:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _[16]; // signature,linkerversion,minversion,exesize,imagestart data/upx-ucl-3.96/src/p_tmt.h:72:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char __[4]; // initial memory data/upx-ucl-3.96/src/p_tmt.h:74:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ___[12]; // esp,numfixups,flags data/upx-ucl-3.96/src/p_tos.cpp:385:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[768]; data/upx-ucl-3.96/src/p_tos.cpp:488:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ibuf+t, &ih, FH_SIZE); data/upx-ucl-3.96/src/p_tos.cpp:521:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(last_loader, getLoader(), last_lsize); data/upx-ucl-3.96/src/p_tos.cpp:620:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(last_loader, getLoader(), last_lsize); data/upx-ucl-3.96/src/p_tos.cpp:669:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&oh, &ih, FH_SIZE); data/upx-ucl-3.96/src/p_tos.cpp:699:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(loader, getLoader(), o_text); data/upx-ucl-3.96/src/p_tos.cpp:707:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(obuf + d_off, getLoader() + e_len, d_len); // copy decompressor data/upx-ucl-3.96/src/p_unix.cpp:75:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[256]; data/upx-ucl-3.96/src/p_unix.cpp:86:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[32]; data/upx-ucl-3.96/src/p_unix.cpp:385:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(obuf, ibuf, ph.c_len); data/upx-ucl-3.96/src/p_vmlinx.cpp:300:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&unc_hdr[0], &ehdri, sizeof(ehdri)); data/upx-ucl-3.96/src/p_vmlinx.cpp:301:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&unc_hdr[sizeof(ehdri)], phdri, sizeof(Phdr) * ehdri.e_phnum); data/upx-ucl-3.96/src/p_vmlinx.cpp:393:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(loader, getLoader(), lsize); data/upx-ucl-3.96/src/p_vmlinx.cpp:602:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/upx-ucl-3.96/src/p_vmlinx.cpp:1164:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[5]; data/upx-ucl-3.96/src/p_vmlinx.cpp:1176:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[5]; data/upx-ucl-3.96/src/p_vmlinz.cpp:407:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(setup_buf, obuf, setup_size); data/upx-ucl-3.96/src/p_vmlinz.cpp:474:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(loader, getLoader(), lsize); data/upx-ucl-3.96/src/p_vmlinz.cpp:633:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(loader, getLoader(), lsize); data/upx-ucl-3.96/src/p_vmlinz.cpp:908:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(setup_buf, obuf, setup_size); data/upx-ucl-3.96/src/p_vmlinz.cpp:1004:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(loader, getLoader(), lsize); data/upx-ucl-3.96/src/p_vmlinz.h:68:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _[0x1f1]; data/upx-ucl-3.96/src/p_vmlinz.h:70:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char __[2]; data/upx-ucl-3.96/src/p_vmlinz.h:72:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ___[6]; data/upx-ucl-3.96/src/p_vmlinz.h:75:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ____[2]; data/upx-ucl-3.96/src/p_vmlinz.h:76:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char hdrs[4]; // "HdrS" data/upx-ucl-3.96/src/p_vmlinz.h:78:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _____[9]; data/upx-ucl-3.96/src/p_vmlinz.h:80:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ______[2]; data/upx-ucl-3.96/src/p_vmlinz.h:82:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _7[0x230 - (0x214 + 4)]; data/upx-ucl-3.96/src/p_vmlinz.h:85:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _8[0x248 - (0x234 + 1)]; data/upx-ucl-3.96/src/p_w32pe.cpp:81:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[6]; data/upx-ucl-3.96/src/p_wcle.cpp:191:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(iobject_desc,iobject_table,objects*sizeof(*iobject_table)); data/upx-ucl-3.96/src/p_wcle.cpp:320:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(selector_fixups,"\x8C\xCB\x66\x89\x9D",5); // mov bx, cs ; mov [xxx+ebp], bx data/upx-ucl-3.96/src/p_wcle.cpp:343:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(iimage+jc+fixp2,fix+5,(fix[1] & 0x10) ? 4 : 2); data/upx-ucl-3.96/src/p_wcle.cpp:347:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(selector_fixups,"\x8C\xCA\x66\x89\x95",5); data/upx-ucl-3.96/src/p_wcle.cpp:407:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(fix,srf,selector_fixups-srf); // copy selector fixup code data/upx-ucl-3.96/src/p_wcle.cpp:410:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(fix,slf,selfrel_fixups-slf); // copy self-relative fixup positions data/upx-ucl-3.96/src/p_wcle.cpp:425:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ibuf,iimage,soimage); data/upx-ucl-3.96/src/p_wcle.cpp:426:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ibuf+soimage,ifixups,sofixups); data/upx-ucl-3.96/src/p_wcle.cpp:490:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ifixups+sofixups,iobject_desc,ic); data/upx-ucl-3.96/src/p_wcle.cpp:550:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(loader, getLoader(), lsize); data/upx-ucl-3.96/src/p_wcle.cpp:553:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(oimage, loader, e_len); data/upx-ucl-3.96/src/p_wcle.cpp:554:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(oimage + soimage - d_len, loader + e_len, d_len); data/upx-ucl-3.96/src/p_wcle.cpp:698:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(oobject_table,oimage + ph.u_len - extradata - ic,ic); data/upx-ucl-3.96/src/packer.cpp:629:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open("/dev/urandom", O_RDONLY | O_BINARY); data/upx-ucl-3.96/src/packer.cpp:631:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open("/dev/random", O_RDONLY | O_BINARY); data/upx-ucl-3.96/src/packer.cpp:1519:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(o_ptr, o_tmp, ph.c_len); data/upx-ucl-3.96/src/packmast.cpp:64:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&this->local_options, o, sizeof(*o)); // struct copy data/upx-ucl-3.96/src/pefile.cpp:77:42: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define imemcpy(a,b,c) ICHECK(a,c), memcpy(a,b,c) data/upx-ucl-3.96/src/pefile.cpp:78:42: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define omemcpy(a,b,c) OCHECK(a,c), memcpy(a,b,c) data/upx-ucl-3.96/src/pefile.cpp:143:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _[18]; data/upx-ucl-3.96/src/pefile.cpp:145:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char __[34]; data/upx-ucl-3.96/src/pefile.cpp:171:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; snprintf(buf, sizeof(buf), data/upx-ucl-3.96/src/pefile.cpp:440:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(orelocs + sorelocs,fix[ic],4 * xcounts[ic]); data/upx-ucl-3.96/src/pefile.cpp:544:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(orelocs + sorelocs,fix[ic],4 * xcounts[ic]); data/upx-ucl-3.96/src/pefile.cpp:633:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char zeros[sizeof(import_desc)]; data/upx-ucl-3.96/src/pefile.cpp:736:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ord[1+5+1]; data/upx-ucl-3.96/src/pefile.cpp:798:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ord[1+5+1]; data/upx-ucl-3.96/src/pefile.cpp:1017:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ppi,ibuf.subref("bad import name %#x", skip2, take2), take2); data/upx-ucl-3.96/src/pefile.cpp:1023:36: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned esize = ptr_diff((char *)tarr, (char *)idlls[ic]->lookupt); data/upx-ucl-3.96/src/pefile.cpp:1023:50: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned esize = ptr_diff((char *)tarr, (char *)idlls[ic]->lookupt); data/upx-ucl-3.96/src/pefile.cpp:1025:78: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. if (ptr_diff(ibuf.subref("bad import name %#x", idlls[ic]->iat, 1), (char *)idlls[ic]->lookupt)) data/upx-ucl-3.96/src/pefile.cpp:1027:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ibuf.subref("bad import name %#x", idlls[ic]->iat, esize), idlls[ic]->lookupt, esize); data/upx-ucl-3.96/src/pefile.cpp:1110:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&edir,base + eoffs,sizeof(export_dir_t)); data/upx-ucl-3.96/src/pefile.cpp:1115:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[50]; snprintf(msg, sizeof(msg), data/upx-ucl-3.96/src/pefile.cpp:1126:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(functionptrs,base + edir.addrtable,len); data/upx-ucl-3.96/src/pefile.cpp:1159:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ordinals,base + edir.ordinaltable,len); data/upx-ucl-3.96/src/pefile.cpp:1181:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ordinalp,ordinals,2 * edir.names); data/upx-ucl-3.96/src/pefile.cpp:1194:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(functionp,functionptrs,4 * edir.functions); data/upx-ucl-3.96/src/pefile.cpp:1203:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newbase,&edir,sizeof(edir)); data/upx-ucl-3.96/src/pefile.cpp:1252:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _[8]; // zero init, characteristics data/upx-ucl-3.96/src/pefile.cpp:1270:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _[8]; // zero init, characteristics data/upx-ucl-3.96/src/pefile.cpp:1352:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(otls,ibuf.subref("bad tls %#x", skip1, take1), take1); data/upx-ucl-3.96/src/pefile.cpp:1355:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(otls + sizeof(tls),ibuf.subref("bad tls %#x", tlsdatastart, take3), take3); data/upx-ucl-3.96/src/pefile.cpp:1453:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(oloadconf, loadconf, soloadconf); data/upx-ucl-3.96/src/pefile.cpp:1479:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _[12]; // flags, timedate, version data/upx-ucl-3.96/src/pefile.cpp:1492:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _[8]; // codepage, reserved data/upx-ucl-3.96/src/pefile.cpp:1679:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(child->name,p,len); // copy unicode string data/upx-ucl-3.96/src/pefile.cpp:1723:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newstart + spos,p,get_le16(p) * 2 + 2); data/upx-ucl-3.96/src/pefile.cpp:1828:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(oresources,p,res->dirsize()); data/upx-ucl-3.96/src/pefile.cpp:1846:35: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return (unsigned) atoi(mkeep) == num; data/upx-ucl-3.96/src/pefile.cpp:1982:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ores, ibuf.subref("bad resoff %#x", res->offs(), take), take); data/upx-ucl-3.96/src/pefile.cpp:2046:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _[16]; // flags, time/date, version, type data/upx-ucl-3.96/src/pefile.cpp:2048:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char __[4]; // rva data/upx-ucl-3.96/src/pefile.cpp:2079:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; snprintf(buf, sizeof(buf), "too many sections %d", objs); data/upx-ucl-3.96/src/pefile.cpp:2089:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; snprintf(buf, sizeof(buf), data/upx-ucl-3.96/src/pefile.cpp:2094:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; snprintf(buf, sizeof(buf), data/upx-ucl-3.96/src/pefile.cpp:2099:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[80]; snprintf(buf, sizeof(buf), data/upx-ucl-3.96/src/pefile.cpp:2114:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/upx-ucl-3.96/src/pefile.cpp:2281:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; snprintf(buf, sizeof(buf), "bad alignment %#x", 1+ oam1); data/upx-ucl-3.96/src/pefile.cpp:2296:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ibuf+newvsize,oimport,soimport); data/upx-ucl-3.96/src/pefile.cpp:2297:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ibuf+newvsize+soimport,orelocs,sorelocs); data/upx-ucl-3.96/src/pefile.cpp:2307:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p1 + s,&ih,sizeof (ih)); data/upx-ucl-3.96/src/pefile.cpp:2309:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p1 + s,isection,ih.objects * sizeof(*isection)); data/upx-ucl-3.96/src/pefile.cpp:2336:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; snprintf(buf, sizeof(buf), data/upx-ucl-3.96/src/pefile.cpp:2474:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(loader,getLoader(),lsize); data/upx-ucl-3.96/src/pefile.cpp:2487:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(osection[0].name,"UPX0"); data/upx-ucl-3.96/src/pefile.cpp:2488:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(osection[1].name,"UPX1"); data/upx-ucl-3.96/src/pefile.cpp:2531:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(osection[3].name, ".rsrc"); data/upx-ucl-3.96/src/pefile.cpp:2905:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&oh, extrainfo, take); data/upx-ucl-3.96/src/pefile.cpp:2915:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(osection, extrainfo, take); data/upx-ucl-3.96/src/pefile.cpp:3038:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[256]; data/upx-ucl-3.96/src/pefile.h:183:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _[8]; data/upx-ucl-3.96/src/pefile.h:194:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[8]; data/upx-ucl-3.96/src/pefile.h:199:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _[12]; data/upx-ucl-3.96/src/pefile.h:394:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _[12]; // flags, timedate, version data/upx-ucl-3.96/src/pefile.h:396:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char __[4]; // ordinal base data/upx-ucl-3.96/src/pefile.h:445:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _[4]; // pemagic data/upx-ucl-3.96/src/pefile.h:448:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char __[12]; // timestamp + reserved data/upx-ucl-3.96/src/pefile.h:453:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ___[2]; // linkerversion data/upx-ucl-3.96/src/pefile.h:467:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ____[16]; // versions data/upx-ucl-3.96/src/pefile.h:475:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _____[20]; // stack + heap sizes data/upx-ucl-3.96/src/pefile.h:507:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _[4]; // pemagic data/upx-ucl-3.96/src/pefile.h:510:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char __[12]; // timestamp + reserved data/upx-ucl-3.96/src/pefile.h:515:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ___[2]; // linkerversion data/upx-ucl-3.96/src/pefile.h:529:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ____[16]; // versions data/upx-ucl-3.96/src/pefile.h:537:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _____[36]; // stack + heap sizes + loader flag data/upx-ucl-3.96/src/s_djgpp2.cpp:92:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->data->sb_buf[this->data->sb_sp], line, len); data/upx-ucl-3.96/src/s_vcsa.cpp:67:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char map[256]; data/upx-ucl-3.96/src/s_vcsa.cpp:84:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->data->sb_buf[this->data->sb_sp], line, len); data/upx-ucl-3.96/src/s_vcsa.cpp:142:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char b[2] = {x, y}; data/upx-ucl-3.96/src/s_vcsa.cpp:155:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char b[2]; data/upx-ucl-3.96/src/s_vcsa.cpp:221:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char scrnmap[E_TABSZ]; data/upx-ucl-3.96/src/s_vcsa.cpp:255:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char vc_name[64]; data/upx-ucl-3.96/src/s_vcsa.cpp:256:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vc_data[4]; data/upx-ucl-3.96/src/s_vcsa.cpp:262:26: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). this->data->fd = open(vc_name, O_RDWR); data/upx-ucl-3.96/src/s_vcsa.cpp:265:30: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). this->data->fd = open(vc_name, O_RDWR); data/upx-ucl-3.96/src/s_vcsa.cpp:307:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char new_line[len]; data/upx-ucl-3.96/src/s_win32.cpp:62:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char title[512]; data/upx-ucl-3.96/src/snprintf.cpp:172:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char convert[64 + 1]; data/upx-ucl-3.96/src/snprintf.cpp:325:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char iconvert[311 + 1]; data/upx-ucl-3.96/src/snprintf.cpp:326:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fconvert[311 + 1]; data/upx-ucl-3.96/src/snprintf.cpp:866:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf1[1024]; data/upx-ucl-3.96/src/snprintf.cpp:867:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf2[1024]; data/upx-ucl-3.96/src/snprintf.cpp:985:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf2, "%1.1f", v0*pow(10, x)); data/upx-ucl-3.96/src/stub/amd64-darwin.dylib-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_amd64_darwin_dylib_entry[9507] = { data/upx-ucl-3.96/src/stub/amd64-darwin.macho-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_amd64_darwin_macho_entry[9864] = { data/upx-ucl-3.96/src/stub/amd64-darwin.macho-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_amd64_darwin_macho_fold[2187] = { data/upx-ucl-3.96/src/stub/amd64-darwin.macho-upxmain.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_amd64_darwin_macho_upxmain_exe[4136] = { data/upx-ucl-3.96/src/stub/amd64-linux.elf-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_amd64_linux_elf_entry[9547] = { data/upx-ucl-3.96/src/stub/amd64-linux.elf-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_amd64_linux_elf_fold[2251] = { data/upx-ucl-3.96/src/stub/amd64-linux.kernel.vmlinux-head.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_amd64_linux_kernel_vmlinux_head[37] = { data/upx-ucl-3.96/src/stub/amd64-linux.kernel.vmlinux.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_amd64_linux_kernel_vmlinux[25838] = { data/upx-ucl-3.96/src/stub/amd64-linux.shlib-init.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_amd64_linux_shlib_init[9569] = { data/upx-ucl-3.96/src/stub/amd64-win64.pep.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_amd64_win64_pep[21047] = { data/upx-ucl-3.96/src/stub/arm.v4a-linux.elf-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_arm_v4a_linux_elf_entry[14512] = { data/upx-ucl-3.96/src/stub/arm.v4a-linux.elf-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_arm_v4a_linux_elf_fold[2756] = { data/upx-ucl-3.96/src/stub/arm.v4a-wince.pe.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_arm_v4a_wince_pe[15590] = { data/upx-ucl-3.96/src/stub/arm.v4t-wince.pe.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_arm_v4t_wince_pe[7542] = { data/upx-ucl-3.96/src/stub/arm.v5a-darwin.macho-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_arm_v5a_darwin_macho_entry[14661] = { data/upx-ucl-3.96/src/stub/arm.v5a-darwin.macho-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_arm_v5a_darwin_macho_fold[2488] = { data/upx-ucl-3.96/src/stub/arm.v5a-linux.elf-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_arm_v5a_linux_elf_entry[14600] = { data/upx-ucl-3.96/src/stub/arm.v5a-linux.elf-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_arm_v5a_linux_elf_fold[2912] = { data/upx-ucl-3.96/src/stub/arm.v5a-linux.kernel.vmlinux-head.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_arm_v5a_linux_kernel_vmlinux_head[8] = { data/upx-ucl-3.96/src/stub/arm.v5a-linux.kernel.vmlinux.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_arm_v5a_linux_kernel_vmlinux[15163] = { data/upx-ucl-3.96/src/stub/arm.v5a-linux.kernel.vmlinuz-head.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_arm_v5a_linux_kernel_vmlinuz_head[8] = { data/upx-ucl-3.96/src/stub/arm.v5a-linux.kernel.vmlinuz.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_arm_v5a_linux_kernel_vmlinuz[15163] = { data/upx-ucl-3.96/src/stub/arm.v5a-linux.shlib-init.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_arm_v5a_linux_shlib_init[15730] = { data/upx-ucl-3.96/src/stub/arm.v5t-linux.shlib-init.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_arm_v5t_linux_shlib_init[15578] = { data/upx-ucl-3.96/src/stub/arm64-darwin.macho-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_arm64_darwin_macho_entry[7897] = { data/upx-ucl-3.96/src/stub/arm64-darwin.macho-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_arm64_darwin_macho_fold[2536] = { data/upx-ucl-3.96/src/stub/arm64-linux.elf-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_arm64_linux_elf_entry[8110] = { data/upx-ucl-3.96/src/stub/arm64-linux.elf-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_arm64_linux_elf_fold[2608] = { data/upx-ucl-3.96/src/stub/arm64-linux.shlib-init.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_arm64_linux_shlib_init[8638] = { data/upx-ucl-3.96/src/stub/armeb.v4a-linux.elf-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_armeb_v4a_linux_elf_entry[14509] = { data/upx-ucl-3.96/src/stub/armeb.v4a-linux.elf-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_armeb_v4a_linux_elf_fold[2756] = { data/upx-ucl-3.96/src/stub/armeb.v5a-linux.kernel.vmlinux-head.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_armeb_v5a_linux_kernel_vmlinux_head[8] = { data/upx-ucl-3.96/src/stub/armeb.v5a-linux.kernel.vmlinux.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_armeb_v5a_linux_kernel_vmlinux[15160] = { data/upx-ucl-3.96/src/stub/i086-dos16.com.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i086_dos16_com[6052] = { data/upx-ucl-3.96/src/stub/i086-dos16.exe.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i086_dos16_exe[30372] = { data/upx-ucl-3.96/src/stub/i086-dos16.sys.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i086_dos16_sys[6986] = { data/upx-ucl-3.96/src/stub/i386-bsd.elf-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_bsd_elf_entry[38222] = { data/upx-ucl-3.96/src/stub/i386-bsd.elf-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_bsd_elf_fold[1809] = { data/upx-ucl-3.96/src/stub/i386-bsd.elf.execve-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_bsd_elf_execve_entry[37970] = { data/upx-ucl-3.96/src/stub/i386-bsd.elf.execve-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_bsd_elf_execve_fold[1031] = { data/upx-ucl-3.96/src/stub/i386-darwin.dylib-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_darwin_dylib_entry[37898] = { data/upx-ucl-3.96/src/stub/i386-darwin.macho-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_darwin_macho_entry[9602] = { data/upx-ucl-3.96/src/stub/i386-darwin.macho-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_darwin_macho_fold[1457] = { data/upx-ucl-3.96/src/stub/i386-darwin.macho-upxmain.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_darwin_macho_upxmain_exe[4688] = { data/upx-ucl-3.96/src/stub/i386-dos32.djgpp2-stubify.h:5:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_dos32_djgpp2_stubify[2048] = { data/upx-ucl-3.96/src/stub/i386-dos32.djgpp2.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_dos32_djgpp2[26043] = { data/upx-ucl-3.96/src/stub/i386-dos32.tmt.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_dos32_tmt[27077] = { data/upx-ucl-3.96/src/stub/i386-dos32.watcom.le.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_dos32_watcom_le[27475] = { data/upx-ucl-3.96/src/stub/i386-linux.elf-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_linux_elf_entry[37843] = { data/upx-ucl-3.96/src/stub/i386-linux.elf-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_linux_elf_fold[1940] = { data/upx-ucl-3.96/src/stub/i386-linux.elf.execve-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_linux_elf_execve_entry[37970] = { data/upx-ucl-3.96/src/stub/i386-linux.elf.execve-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_linux_elf_execve_fold[1027] = { data/upx-ucl-3.96/src/stub/i386-linux.elf.interp-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_linux_elf_interp_entry[45328] = { data/upx-ucl-3.96/src/stub/i386-linux.elf.interp-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_linux_elf_interp_fold[1525] = { data/upx-ucl-3.96/src/stub/i386-linux.elf.shell-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_linux_elf_shell_entry[29929] = { data/upx-ucl-3.96/src/stub/i386-linux.elf.shell-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_linux_elf_shell_fold[1316] = { data/upx-ucl-3.96/src/stub/i386-linux.kernel.vmlinux-head.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_linux_kernel_vmlinux_head[37] = { data/upx-ucl-3.96/src/stub/i386-linux.kernel.vmlinux.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_linux_kernel_vmlinux[25838] = { data/upx-ucl-3.96/src/stub/i386-linux.kernel.vmlinuz.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_linux_kernel_vmlinuz[29558] = { data/upx-ucl-3.96/src/stub/i386-linux.shlib-init.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_linux_shlib_init[38305] = { data/upx-ucl-3.96/src/stub/i386-netbsd.elf-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_netbsd_elf_entry[38222] = { data/upx-ucl-3.96/src/stub/i386-netbsd.elf-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_netbsd_elf_fold[1809] = { data/upx-ucl-3.96/src/stub/i386-openbsd.elf-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_openbsd_elf_fold[2033] = { data/upx-ucl-3.96/src/stub/i386-win32.pe.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_i386_win32_pe[32924] = { data/upx-ucl-3.96/src/stub/m68k-atari.tos.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_m68k_atari_tos[19182] = { data/upx-ucl-3.96/src/stub/mips.r3000-linux.elf-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_mips_r3000_linux_elf_entry[9758] = { data/upx-ucl-3.96/src/stub/mips.r3000-linux.elf-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_mips_r3000_linux_elf_fold[2744] = { data/upx-ucl-3.96/src/stub/mips.r3000-linux.shlib-init.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_mips_r3000_linux_shlib_init[9963] = { data/upx-ucl-3.96/src/stub/mipsel.r3000-linux.elf-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_mipsel_r3000_linux_elf_entry[9641] = { data/upx-ucl-3.96/src/stub/mipsel.r3000-linux.elf-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_mipsel_r3000_linux_elf_fold[2744] = { data/upx-ucl-3.96/src/stub/mipsel.r3000-linux.shlib-init.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_mipsel_r3000_linux_shlib_init[9846] = { data/upx-ucl-3.96/src/stub/mipsel.r3000-ps1.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_mipsel_r3000_ps1[21417] = { data/upx-ucl-3.96/src/stub/powerpc-darwin.dylib-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_powerpc_darwin_dylib_entry[8997] = { data/upx-ucl-3.96/src/stub/powerpc-darwin.macho-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_powerpc_darwin_macho_entry[8924] = { data/upx-ucl-3.96/src/stub/powerpc-darwin.macho-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_powerpc_darwin_macho_fold[2564] = { data/upx-ucl-3.96/src/stub/powerpc-darwin.macho-upxmain.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_powerpc_darwin_macho_upxmain_exe[4096] = { data/upx-ucl-3.96/src/stub/powerpc-linux.elf-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_powerpc_linux_elf_entry[9144] = { data/upx-ucl-3.96/src/stub/powerpc-linux.elf-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_powerpc_linux_elf_fold[4292] = { data/upx-ucl-3.96/src/stub/powerpc-linux.kernel.vmlinux-head.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_powerpc_linux_kernel_vmlinux_head[8] = { data/upx-ucl-3.96/src/stub/powerpc-linux.kernel.vmlinux.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_powerpc_linux_kernel_vmlinux[9090] = { data/upx-ucl-3.96/src/stub/powerpc64-linux.elf-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_powerpc64_linux_elf_entry[11568] = { data/upx-ucl-3.96/src/stub/powerpc64-linux.elf-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_powerpc64_linux_elf_fold[3256] = { data/upx-ucl-3.96/src/stub/powerpc64le-darwin.dylib-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_powerpc64le_darwin_dylib_entry[11099] = { data/upx-ucl-3.96/src/stub/powerpc64le-darwin.macho-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_powerpc64le_darwin_macho_entry[10439] = { data/upx-ucl-3.96/src/stub/powerpc64le-darwin.macho-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_powerpc64le_darwin_macho_fold[6512] = { data/upx-ucl-3.96/src/stub/powerpc64le-linux.elf-entry.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_powerpc64le_linux_elf_entry[11186] = { data/upx-ucl-3.96/src/stub/powerpc64le-linux.elf-fold.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_powerpc64le_linux_elf_fold[3243] = { data/upx-ucl-3.96/src/stub/powerpc64le-linux.kernel.vmlinux-head.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_powerpc64le_linux_kernel_vmlinux_head[8] = { data/upx-ucl-3.96/src/stub/powerpc64le-linux.kernel.vmlinux.h:38:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char stub_powerpc64le_linux_kernel_vmlinux[11072] = { data/upx-ucl-3.96/src/stub/src/amd64-darwin.macho-main.c:337:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/upx-ucl-3.96/src/stub/src/amd64-darwin.macho-main.c:354:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sectname[16]; data/upx-ucl-3.96/src/stub/src/amd64-darwin.macho-main.c:355:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/upx-ucl-3.96/src/stub/src/amd64-darwin.macho-main.c:731:25: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int const fdi = open(dyld_name, O_RDONLY, 0); data/upx-ucl-3.96/src/stub/src/amd64-darwin.macho-main.c:827:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[24]; // ~0ull == 18446744073709551615 ==> 20 chars data/upx-ucl-3.96/src/stub/src/amd64-darwin.macho-upxmain.c:149:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; data/upx-ucl-3.96/src/stub/src/amd64-darwin.macho-upxmain.c:415:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/upx-ucl-3.96/src/stub/src/amd64-darwin.macho-upxmain.c:432:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sectname[16]; data/upx-ucl-3.96/src/stub/src/amd64-darwin.macho-upxmain.c:433:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/upx-ucl-3.96/src/stub/src/amd64-darwin.macho-upxmain.c:665:25: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int const fdi = open(dyld_name, O_RDONLY, 0); data/upx-ucl-3.96/src/stub/src/amd64-linux.elf-main.c:597:25: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int const fdi = open(iname, O_RDONLY, 0); data/upx-ucl-3.96/src/stub/src/amd64-linux.elf-main.c:711:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[24]; // ~0ull == 18446744073709551615 ==> 20 chars data/upx-ucl-3.96/src/stub/src/arch/i086/l_test.c:71:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char c_data[92] = { data/upx-ucl-3.96/src/stub/src/i386-bsd.elf-main.c:100:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; data/upx-ucl-3.96/src/stub/src/i386-bsd.elf-main.c:581:25: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int const fdi = open(reloc + (char const *)phdr->p_vaddr, O_RDONLY, 0); data/upx-ucl-3.96/src/stub/src/i386-bsd.elf.execve-main.c:160:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int const fdi = open(tmpname, O_RDONLY, 0); data/upx-ucl-3.96/src/stub/src/i386-bsd.elf.execve-main.c:166:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char procself_buf[31+1]; data/upx-ucl-3.96/src/stub/src/i386-bsd.elf.execve-main.c:245:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpname_buf[20]; data/upx-ucl-3.96/src/stub/src/i386-bsd.elf.execve-main.c:326:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fdo = open(tmpname, O_RDWR | O_CREAT | O_EXCL, 0700); data/upx-ucl-3.96/src/stub/src/i386-bsd.elf.execve-main.c:328:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fdo = open(tmpname, O_WRONLY | O_CREAT | O_EXCL, 0700); data/upx-ucl-3.96/src/stub/src/i386-darwin.macho-main.c:105:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[24]; // ~0ull == 18446744073709551615 ==> 20 chars data/upx-ucl-3.96/src/stub/src/i386-darwin.macho-main.c:399:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/upx-ucl-3.96/src/stub/src/i386-darwin.macho-main.c:417:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sectname[16]; data/upx-ucl-3.96/src/stub/src/i386-darwin.macho-main.c:418:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/upx-ucl-3.96/src/stub/src/i386-darwin.macho-main.c:740:25: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int const fdi = open(dyld_name, O_RDONLY, 0); data/upx-ucl-3.96/src/stub/src/i386-darwin.macho-upxmain.c:148:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; data/upx-ucl-3.96/src/stub/src/i386-darwin.macho-upxmain.c:413:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/upx-ucl-3.96/src/stub/src/i386-darwin.macho-upxmain.c:430:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sectname[16]; data/upx-ucl-3.96/src/stub/src/i386-darwin.macho-upxmain.c:431:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/upx-ucl-3.96/src/stub/src/i386-darwin.macho-upxmain.c:657:25: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int const fdi = open(dyld_name, O_RDONLY, 0); data/upx-ucl-3.96/src/stub/src/i386-darwin.macho-upxmain.c:779:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mhdr[16384]; data/upx-ucl-3.96/src/stub/src/i386-linux.elf-main.c:162:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[24]; // ~0ull == 18446744073709551615 ==> 20 chars data/upx-ucl-3.96/src/stub/src/i386-linux.elf-main.c:944:25: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int const fdi = open(reloc + (char const *)phdr->p_vaddr, O_RDONLY, 0); data/upx-ucl-3.96/src/stub/src/i386-linux.elf.execve-main.c:163:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int const fdi = open(tmpname, O_RDONLY, 0); data/upx-ucl-3.96/src/stub/src/i386-linux.elf.execve-main.c:169:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char procself_buf[31+1]; data/upx-ucl-3.96/src/stub/src/i386-linux.elf.execve-main.c:205:29: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int const fdo = open(tmpname, O_WRONLY | O_CREAT | O_EXCL, 0700); data/upx-ucl-3.96/src/stub/src/i386-linux.elf.execve-main.c:268:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpname_buf[20]; data/upx-ucl-3.96/src/stub/src/i386-linux.elf.execve-main.c:349:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fdo = open(tmpname, O_RDWR | O_CREAT | O_EXCL, 0700); data/upx-ucl-3.96/src/stub/src/i386-linux.elf.execve-main.c:351:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fdo = open(tmpname, O_WRONLY | O_CREAT | O_EXCL, 0700); data/upx-ucl-3.96/src/stub/src/i386-linux.elf.interp-main.c:414:25: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int const fdi = open(iname, O_RDONLY, 0); data/upx-ucl-3.96/src/stub/src/i386-linux.elf.shell-main.c:287:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int const fdi = open(fname, O_RDONLY, 0); data/upx-ucl-3.96/src/stub/src/i386-openbsd.elf-main.c:100:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; data/upx-ucl-3.96/src/stub/src/i386-openbsd.elf-main.c:394:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *addr[2]; data/upx-ucl-3.96/src/stub/src/i386-openbsd.elf-main.c:587:25: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int const fdi = open(reloc + (char const *)phdr->p_vaddr, O_RDONLY, 0); data/upx-ucl-3.96/src/stub/src/include/bsd.h:154:5: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int open(char const *, unsigned, unsigned); data/upx-ucl-3.96/src/stub/src/include/bsd.h:189:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_ident[EI_NIDENT]; data/upx-ucl-3.96/src/stub/src/include/bsd.h:207:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_ident[EI_NIDENT]; data/upx-ucl-3.96/src/stub/src/include/darwin.h:99:5: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int open(char const *, int, ...); data/upx-ucl-3.96/src/stub/src/include/linux.h:359:29: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). static inline _syscall3(int,open,const char *,file,int,flag,int,mode) data/upx-ucl-3.96/src/stub/src/include/linux.h:509:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). static ssize_t open(char const *path, int kind, int mode) data/upx-ucl-3.96/src/stub/src/include/linux.h:551:5: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int open(char const *, unsigned, unsigned); data/upx-ucl-3.96/src/stub/src/include/linux.h:587:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_ident[EI_NIDENT]; data/upx-ucl-3.96/src/stub/src/include/linux.h:605:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_ident[EI_NIDENT]; data/upx-ucl-3.96/src/stub/src/powerpc-darwin.macho-main.c:256:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/upx-ucl-3.96/src/stub/src/powerpc-darwin.macho-main.c:425:25: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int const fdi = open(dyld_name, O_RDONLY, 0); data/upx-ucl-3.96/src/stub/src/powerpc-darwin.macho-upxmain.c:148:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; data/upx-ucl-3.96/src/stub/src/powerpc-darwin.macho-upxmain.c:413:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/upx-ucl-3.96/src/stub/src/powerpc-darwin.macho-upxmain.c:430:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sectname[16]; data/upx-ucl-3.96/src/stub/src/powerpc-darwin.macho-upxmain.c:431:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/upx-ucl-3.96/src/stub/src/powerpc-darwin.macho-upxmain.c:657:25: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int const fdi = open(dyld_name, O_RDONLY, 0); data/upx-ucl-3.96/src/stub/src/powerpc-darwin.macho-upxmain.c:736:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mhdr[16384]; data/upx-ucl-3.96/src/stub/src/powerpc64le-darwin.macho-main.c:256:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/upx-ucl-3.96/src/stub/src/powerpc64le-darwin.macho-main.c:425:25: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int const fdi = open(dyld_name, O_RDONLY, 0); data/upx-ucl-3.96/src/stub/tools/armpe/armpe_tester.c:87:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _[4]; data/upx-ucl-3.96/src/stub/tools/armpe/armpe_tester.c:90:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char __[12]; data/upx-ucl-3.96/src/stub/tools/armpe/armpe_tester.c:94:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ___[4]; data/upx-ucl-3.96/src/stub/tools/armpe/armpe_tester.c:108:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ____[16]; data/upx-ucl-3.96/src/stub/tools/armpe/armpe_tester.c:116:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _____[20]; data/upx-ucl-3.96/src/stub/tools/armpe/armpe_tester.c:125:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[8]; data/upx-ucl-3.96/src/stub/tools/armpe/armpe_tester.c:130:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _[12]; data/upx-ucl-3.96/src/stub/tools/armpe/armpe_tester.c:139:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char _[18]; data/upx-ucl-3.96/src/stub/tools/armpe/armpe_tester.c:141:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char __[34]; data/upx-ucl-3.96/src/stub/tools/armpe/armpe_tester.c:193:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((f = fopen(file, "rb")) == NULL) data/upx-ucl-3.96/src/stub/tools/armpe/armpe_tester.c:258:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/upx-ucl-3.96/src/stub/tools/armpe/armpe_tester.c:264:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f2 = fopen(buf, "wb"); data/upx-ucl-3.96/src/stub/tools/armpe/armpe_tester.c:393:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). out = fopen("/wtest.log", "wt"); data/upx-ucl-3.96/src/stub/tools/sstrip/sstrip.c:376:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char contents[1024]; data/upx-ucl-3.96/src/stub/tools/sstrip/sstrip.c:434:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(*arg, O_RDWR); data/upx-ucl-3.96/src/ui.cpp:57:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg_buf[1 + 79 + 1]; data/upx-ucl-3.96/src/ui.cpp:121:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(progress_filler, "\xf9\xfe[]"); data/upx-ucl-3.96/src/ui.cpp:132:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[2048]; data/upx-ucl-3.96/src/ui.cpp:133:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char r[7 + 1]; data/upx-ucl-3.96/src/ui.cpp:134:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fn[15 + 1]; data/upx-ucl-3.96/src/ui.cpp:141:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(r, "overlay"); data/upx-ucl-3.96/src/ui.cpp:201:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char method_name[32 + 1]; data/upx-ucl-3.96/src/ui.cpp:526:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[32]; data/upx-ucl-3.96/src/util.cpp:258:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char w[2]; data/upx-ucl-3.96/src/util.cpp:264:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char w[4]; data/upx-ucl-3.96/src/util.cpp:270:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char w[8]; data/upx-ucl-3.96/src/util.cpp:276:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char w[2]; data/upx-ucl-3.96/src/util.cpp:282:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char w[4]; data/upx-ucl-3.96/src/util.cpp:288:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char w[8]; data/upx-ucl-3.96/src/util.cpp:303:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(b + boff, r, wlen); data/upx-ucl-3.96/src/util.cpp:409:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf + (l1 - l2) / 2, s, l2); data/upx-ucl-3.96/src/util.cpp:418:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(name, O_RDONLY | O_BINARY, 0); data/upx-ucl-3.96/src/util.cpp:485:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(ofext, ".~"); data/upx-ucl-3.96/src/work.cpp:119:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tname[ACC_FN_PATH_MAX + 1]; data/upx-ucl-3.96/src/work.cpp:199:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bakname[ACC_FN_PATH_MAX + 1]; data/upx-ucl-3.96/src/work.cpp:267:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char oname[ACC_FN_PATH_MAX + 1]; data/upx-ucl-3.96/src/file.cpp:139:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int FileBase::read(void *buf, int len) data/upx-ucl-3.96/src/file.cpp:154:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int l = this->read(buf, len); data/upx-ucl-3.96/src/file.cpp:255:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int InputFile::read(void *buf, int len) data/upx-ucl-3.96/src/file.cpp:257:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return super::read(buf, len); data/upx-ucl-3.96/src/file.cpp:266:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int InputFile::read(MemBuffer *buf, int len) data/upx-ucl-3.96/src/file.cpp:270:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(buf->getVoidPtr(), len); data/upx-ucl-3.96/src/file.cpp:277:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(buf->getVoidPtr(), len); data/upx-ucl-3.96/src/file.cpp:281:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int InputFile::read(MemBuffer &buf, int len) data/upx-ucl-3.96/src/file.cpp:283:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(&buf, len); data/upx-ucl-3.96/src/file.h:67:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual int read(void *buf, int len); data/upx-ucl-3.96/src/file.h:102:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual int read(void *buf, int len); data/upx-ucl-3.96/src/file.h:104:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual int read(MemBuffer *buf, int len); data/upx-ucl-3.96/src/file.h:106:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual int read(MemBuffer &buf, int len); data/upx-ucl-3.96/src/help.cpp:156:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t fl = strlen(fn); data/upx-ucl-3.96/src/linker.cpp:162:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((int) strlen("Sections:\n" data/upx-ucl-3.96/src/linker.cpp:192:13: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. if (sscanf(start, "%*d %1023s %x %*d %*d %x 2**%d", name, &size, &offset, &align) == 4) { data/upx-ucl-3.96/src/linker.cpp:194:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n[strlen(name)] = 0; data/upx-ucl-3.96/src/linker.cpp:215:13: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. if (sscanf(start, "%x g *ABS* %x %1023s", &value, &offset, symbol) == 3) { data/upx-ucl-3.96/src/linker.cpp:217:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). s[strlen(symbol)] = 0; data/upx-ucl-3.96/src/linker.cpp:222:18: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. else if (sscanf(start, "%x%*8c %1023s %*x %1023s", data/upx-ucl-3.96/src/linker.cpp:226:18: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. else if (sscanf(start, "%x%*c%*c%*c%*c%*c%*c%*c%*c %1023s %*x %1023s", data/upx-ucl-3.96/src/linker.cpp:231:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). s[strlen(symbol)] = 0; data/upx-ucl-3.96/src/linker.cpp:258:13: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. if (sscanf(start, "%x %99s %1023s", &offset, type, symbol) == 3) { data/upx-ucl-3.96/src/linker.cpp:260:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). t[strlen(type)] = 0; data/upx-ucl-3.96/src/linker.cpp:270:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(p) == 8 || strlen(p) == 16); data/upx-ucl-3.96/src/linker.cpp:270:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(p) == 8 || strlen(p) == 16); data/upx-ucl-3.96/src/linker.cpp:322:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(sname[strlen(sname) - 1] != ':'); data/upx-ucl-3.96/src/linker.cpp:337:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(name[strlen(name) - 1] != ':'); data/upx-ucl-3.96/src/linker.cpp:369:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *end = begin + strlen(begin); data/upx-ucl-3.96/src/linker.cpp:416:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sect += strlen(sect) + 1; data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Archive/7z_C/7zMain.c:173:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t nameLen = strlen(f->Name); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Common/FileStreams.cpp:81:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res = read(0, data, (size_t)size); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateTest.c:33:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf(buffer + strlen(buffer), "\nError: "); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateTest.c:34:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf(buffer + strlen(buffer), message); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateTest.c:123:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf(rs + strlen(rs), "\nDecoding error = %d\n", res); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateTest.c:163:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf(rs + strlen(rs), "\nLZMA Decoder 4.26 Copyright (c) 1999-2005 Igor Pavlov 2005-08-02\n"); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaStateTest.c:166:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf(rs + strlen(rs), "\nUsage: lzmadec file.lzma [outFile]\n"); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTest.c:66:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf(buffer + strlen(buffer), "\nError: "); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTest.c:67:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf(buffer + strlen(buffer), message); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTest.c:231:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf(rs + strlen(rs), "\nDecoding error = %d\n", res); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTest.c:278:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf(rs + strlen(rs), "\nDecoding error = %d\n", res); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTest.c:310:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf(rs + strlen(rs), "\nLZMA Decoder 4.26 Copyright (c) 1999-2005 Igor Pavlov 2005-08-05\n"); data/upx-ucl-3.96/src/lzma-sdk/C/7zip/Compress/LZMA_C/LzmaTest.c:313:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf(rs + strlen(rs), "\nUsage: lzmadec file.lzma [outFile]\n"); data/upx-ucl-3.96/src/lzma-sdk/C/Common/C_FileIO.cpp:56:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(_handle, data, size); data/upx-ucl-3.96/src/main.cpp:359:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(n) >= ACC_FN_PATH_MAX - 4) data/upx-ucl-3.96/src/main.cpp:600:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!mfx_optarg || strlen(mfx_optarg) != 4) data/upx-ucl-3.96/src/main.cpp:605:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!mfx_optarg || strlen(mfx_optarg) != 4) data/upx-ucl-3.96/src/main.cpp:1330:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(UPX_VERSION_STRING4) == 4); data/upx-ucl-3.96/src/main.cpp:1333:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(UPX_VERSION_YEAR) == 4); data/upx-ucl-3.96/src/main.cpp:1337:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t revlen = strlen(gitrev); data/upx-ucl-3.96/src/miniacc.h:7135:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). errno = 0; n = read(fd, b, n); data/upx-ucl-3.96/src/msg.cpp:94:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). upx_snprintf(buf+strlen(buf),sizeof(buf)-strlen(buf),"%s: ", progname); data/upx-ucl-3.96/src/msg.cpp:94:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). upx_snprintf(buf+strlen(buf),sizeof(buf)-strlen(buf),"%s: ", progname); data/upx-ucl-3.96/src/msg.cpp:116:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen(buf); data/upx-ucl-3.96/src/msg.cpp:119:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen(buf); data/upx-ucl-3.96/src/msg.cpp:125:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen(buf); data/upx-ucl-3.96/src/p_djgpp2.cpp:206:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (fi->read(&coff_hdr, sizeof(coff_hdr)) != sizeof(coff_hdr)) data/upx-ucl-3.96/src/p_lx_elf.cpp:1962:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && (1+ strlen(osabi_note))==get_te32(¬e.nhdr.namesz) data/upx-ucl-3.96/src/p_lx_elf.cpp:4699:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fi->read(lowmem, xct_off); // contains relocation tables data/upx-ucl-3.96/src/p_lx_elf.cpp:5652:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fi->read(lowmem, xct_off); // contains relocation tables data/upx-ucl-3.96/src/p_mach.cpp:1197:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy((char *)segZERO.segname, "__PAGEZERO", sizeof(segZERO.segname)); data/upx-ucl-3.96/src/p_mach.cpp:1212:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy((char *)segTEXT.segname, "__TEXT", sizeof(segTEXT.segname)); data/upx-ucl-3.96/src/p_mach.cpp:1242:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy((char *)secTEXT.sectname, "__text", sizeof(secTEXT.sectname)); data/upx-ucl-3.96/src/p_mach.cpp:1255:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy((char *)segXHDR.segname, "UPX_DATA", sizeof(segXHDR.segname)); data/upx-ucl-3.96/src/p_mach.cpp:1258:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy((char *)secXHDR.sectname, "upx_data", sizeof(secXHDR.sectname)); data/upx-ucl-3.96/src/p_mach.cpp:1266:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy((char *)segLINK.segname, "__LINKEDIT", sizeof(segLINK.segname)); data/upx-ucl-3.96/src/p_mach.cpp:1283:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy((char *)secTEXT.segname, "__TEXT", sizeof(secTEXT.segname)); data/upx-ucl-3.96/src/p_mach.cpp:1284:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy((char *)secTEXT.sectname, "upxTEXT", sizeof(secTEXT.sectname)); data/upx-ucl-3.96/src/p_mach.cpp:1323:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy((char *)secTEXT.sectname, "upxTEXT", sizeof(secTEXT.sectname)); data/upx-ucl-3.96/src/p_mach.cpp:1991:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(fsm.segZERO.segname, "__PAGEZERO", sizeof(fsm.segZERO.segname)); data/upx-ucl-3.96/src/p_mach.cpp:2006:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(fsm.segTEXT.segname, "__TEXT", sizeof(fsm.segTEXT.segname)); data/upx-ucl-3.96/src/p_mach.cpp:2016:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(fsm.secTEXT.sectname, "__text", sizeof(fsm.secTEXT.sectname)); data/upx-ucl-3.96/src/p_mach.cpp:2031:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(fsm.segLINK.segname, "__LINKEDIT", sizeof(fsm.segLINK.segname)); data/upx-ucl-3.96/src/p_vmlinx.cpp:510:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned const lablen = strlen(my_boot_label); data/upx-ucl-3.96/src/packer.cpp:68:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(getName()) <= 15); data/upx-ucl-3.96/src/packer.cpp:70:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(getFullName(opt)) <= 32); data/upx-ucl-3.96/src/packer.cpp:71:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(getFullName(NULL)) <= 32); data/upx-ucl-3.96/src/packer.cpp:634:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, &id, 4) != 4) data/upx-ucl-3.96/src/packer.cpp:758:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = fi->read(buf, len); data/upx-ucl-3.96/src/pefile.cpp:609:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned l = strlen(dll); data/upx-ucl-3.96/src/pefile.cpp:625:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned len = 1 + 2 * strlen(dll) + 1 + 2 * strlen(proc) + 1 + 1; data/upx-ucl-3.96/src/pefile.cpp:625:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned len = 1 + 2 * strlen(dll) + 1 + 2 * strlen(proc) + 1 + 1; data/upx-ucl-3.96/src/pefile.cpp:629:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). encode_name(proc, procn + strlen(procn)); data/upx-ucl-3.96/src/pefile.cpp:660:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addSection(sdll, dll, strlen(dll) + 1, 0); // name of the dll data/upx-ucl-3.96/src/pefile.cpp:694:13: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(proc_name, "X"); data/upx-ucl-3.96/src/pefile.cpp:695:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addSection(proc_name, proc, strlen(proc), 0); // the name of the symbol data/upx-ucl-3.96/src/pefile.cpp:919:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). soimport += strlen(dlls[ic].name) + 1 + 4; data/upx-ucl-3.96/src/pefile.cpp:932:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned len = strlen(n); data/upx-ucl-3.96/src/pefile.cpp:934:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (dlls[ic].shname == NULL || len < strlen (dlls[ic].shname)) data/upx-ucl-3.96/src/pefile.cpp:1016:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned const take2 = 1+ strlen(ibuf.subref("bad import name %#x", skip2, 1)); data/upx-ucl-3.96/src/pefile.cpp:1030:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). names.add(idlls[ic]->name,strlen(idlls[ic]->name) + 1 + 1); data/upx-ucl-3.96/src/pefile.cpp:1119:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned len = strlen(base + edir.name) + 1; data/upx-ucl-3.96/src/pefile.cpp:1135:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(n) + 1; data/upx-ucl-3.96/src/pefile.cpp:1149:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(forw) + 1; data/upx-ucl-3.96/src/pefile.cpp:1177:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * exports = enamep + strlen(ename) + 1; data/upx-ucl-3.96/src/pefile.cpp:1191:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). exports += strlen(exports) + 1; data/upx-ucl-3.96/src/pefile.cpp:1200:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). exports += strlen(exports) + 1; data/upx-ucl-3.96/src/pefile.cpp:1918:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). upx_snprintf(keep_icons + strlen(keep_icons), 9, "3/%u,", data/upx-ucl-3.96/src/pefile.cpp:1921:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). keep_icons[strlen(keep_icons) - 1] = 0; data/upx-ucl-3.96/src/pefile.cpp:2788:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const unsigned dlen = strlen(dname); data/upx-ucl-3.96/src/pefile.cpp:2794:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(++p) + 1; data/upx-ucl-3.96/src/pefile.cpp:2814:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const unsigned dlen = strlen(dname); data/upx-ucl-3.96/src/pefile.cpp:2842:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const unsigned ilen = strlen(++p) + 1; data/upx-ucl-3.96/src/pefile.cpp:3044:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fi->read(buf, sizeof(buf)); data/upx-ucl-3.96/src/s_djgpp2.cpp:189:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert((int) strlen(s) <= 256); data/upx-ucl-3.96/src/s_djgpp2.cpp:190:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(x + (int) strlen(s) <= this->data->cols); data/upx-ucl-3.96/src/s_djgpp2.cpp:195:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert((int) strlen(s) <= 256); data/upx-ucl-3.96/src/s_djgpp2.cpp:196:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(x + (int) strlen(s) <= this->data->cols); data/upx-ucl-3.96/src/s_vcsa.cpp:156:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(this->data->fd, b, 2) == 2) { data/upx-ucl-3.96/src/s_vcsa.cpp:182:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert((int) strlen(s) <= 256); data/upx-ucl-3.96/src/s_vcsa.cpp:183:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(x + (int) strlen(s) <= this->data->cols); data/upx-ucl-3.96/src/s_vcsa.cpp:196:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (gotoxy(this, x, y) == 0 && read(this->data->fd, &a, 2) == 2) { data/upx-ucl-3.96/src/s_vcsa.cpp:268:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(this->data->fd, vc_data, 4) == 4) { data/upx-ucl-3.96/src/s_vcsa.cpp:344:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(this->data->fd, buf, sizeof(buf)); data/upx-ucl-3.96/src/s_vcsa.cpp:353:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(this->data->fd, buf, sizeof(buf)); data/upx-ucl-3.96/src/s_vcsa.cpp:378:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(this->data->fd, buf, sizeof(buf)); data/upx-ucl-3.96/src/s_vcsa.cpp:449:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (void) fgetc(stdin); data/upx-ucl-3.96/src/s_win32.cpp:167:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int l = (int) strlen(s); data/upx-ucl-3.96/src/snprintf.cpp:664:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strln = (int) strlen(strvalue); data/upx-ucl-3.96/src/snprintf.cpp:841:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #undef strlen data/upx-ucl-3.96/src/snprintf.cpp:844:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(s); data/upx-ucl-3.96/src/snprintf.h:54:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #undef strlen data/upx-ucl-3.96/src/snprintf.h:55:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define strlen upx_strlen data/upx-ucl-3.96/src/snprintf.h:73:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). inline size_t strlen(const unsigned char *s) { return strlen((const char *) s); } data/upx-ucl-3.96/src/snprintf.h:73:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). inline size_t strlen(const unsigned char *s) { return strlen((const char *) s); } data/upx-ucl-3.96/src/stub/src/amd64-linux.elf-main.c:601:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (MAX_ELF_HDR!=read(fdi, (void *)ehdr, MAX_ELF_HDR)) { data/upx-ucl-3.96/src/stub/src/i386-bsd.elf-main.c:585:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (MAX_ELF_HDR!=read(fdi, (void *)ehdr, MAX_ELF_HDR)) { data/upx-ucl-3.96/src/stub/src/i386-linux.elf-main.c:948:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (MAX_ELF_HDR!=read(fdi, (void *)ehdr, MAX_ELF_HDR)) { data/upx-ucl-3.96/src/stub/src/i386-linux.elf.interp-main.c:418:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (MAX_ELF_HDR!=read(fdi, (void *)ehdr, MAX_ELF_HDR)) { data/upx-ucl-3.96/src/stub/src/i386-linux.elf.shell-main.c:292:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (MAX_ELF_HDR!=read(fdi, (void *)ehdr, MAX_ELF_HDR)) { data/upx-ucl-3.96/src/stub/src/i386-openbsd.elf-main.c:591:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (MAX_ELF_HDR!=read(fdi, (void *)ehdr, MAX_ELF_HDR)) { data/upx-ucl-3.96/src/stub/src/include/bsd.h:155:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t read(int, void *, size_t); data/upx-ucl-3.96/src/stub/src/include/linux.h:360:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). static inline _syscall3(ssize_t,read,int,fd,void *,buf,size_t,count) data/upx-ucl-3.96/src/stub/src/include/linux.h:417:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). static ssize_t read(int fd, void *buf, size_t len) data/upx-ucl-3.96/src/stub/src/include/linux.h:552:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t read(int, void *, size_t); data/upx-ucl-3.96/src/stub/tools/armpe/armpe_tester.c:232:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). static int read(void) data/upx-ucl-3.96/src/stub/tools/armpe/armpe_tester.c:374:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read()) data/upx-ucl-3.96/src/stub/tools/sstrip/sstrip.c:150:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, ((char *)ehdr)+EI_NIDENT, sizeof(*ehdr) - EI_NIDENT) \ data/upx-ucl-3.96/src/stub/tools/sstrip/sstrip.c:185:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, *phdrs, size) != (ssize_t)size) \ data/upx-ucl-3.96/src/stub/tools/sstrip/sstrip.c:318:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, ehdr, EI_NIDENT) != EI_NIDENT) data/upx-ucl-3.96/src/stub/tools/sstrip/sstrip.c:386:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, contents, n) != (ssize_t)n) data/upx-ucl-3.96/src/ui.cpp:149:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(fn) == 15); data/upx-ucl-3.96/src/ui.cpp:244:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int l = (int) strlen(fname); data/upx-ucl-3.96/src/ui.cpp:413:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(s->msg_buf) < 1 + 80); data/upx-ucl-3.96/src/util.cpp:405:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t l2 = strlen(s); data/upx-ucl-3.96/src/util.cpp:455:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ofext = ofilename + strlen(ofilename); data/upx-ucl-3.96/src/util.cpp:459:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(ofilename) < size); data/upx-ucl-3.96/src/util.cpp:484:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ofext = ofilename + strlen(ofilename); data/upx-ucl-3.96/src/util.cpp:486:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if (strlen(ofext) < 1 + 3) data/upx-ucl-3.96/src/util.cpp:487:9: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(ofilename, "~"); data/upx-ucl-3.96/src/util.cpp:489:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ofext[strlen(ofext) - 1] = '~'; data/upx-ucl-3.96/src/util.cpp:492:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(ofilename) < size); ANALYSIS SUMMARY: Hits = 861 Lines analyzed = 154032 in approximately 9.07 seconds (16983 lines/second) Physical Source Lines of Code (SLOC) = 132081 Hits@level = [0] 292 [1] 152 [2] 610 [3] 4 [4] 87 [5] 8 Hits@level+ = [0+] 1153 [1+] 861 [2+] 709 [3+] 99 [4+] 95 [5+] 8 Hits/KSLOC@level+ = [0+] 8.72949 [1+] 6.51873 [2+] 5.36792 [3+] 0.74954 [4+] 0.719256 [5+] 0.0605689 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.