diff --git a/src/p_lx_elf.cpp b/src/p_lx_elf.cpp index 063aae33..9aa664f2 100644 --- a/src/p_lx_elf.cpp +++ b/src/p_lx_elf.cpp @@ -437,7 +437,7 @@ off_t PackLinuxElf::pack3(OutputFile *fo, Filter &ft) // return length of output // FIXME: debugging aid: entry to decompressor if (lowmem.getSize()) { Elf32_Ehdr *const ehdr = (Elf32_Ehdr *)&lowmem[0]; - set_te32(&ehdr->e_entry, sz_pack2); // hint for decomperssor + set_te32(&ehdr->e_entry, sz_pack2); // hint for decompressor } // end debugging aid @@ -5126,7 +5126,7 @@ int PackLinuxElf32::pack2(OutputFile *fo, Filter &ft) fo->seek(x.offset, SEEK_SET); fo->write(&file_image[x.offset], x.size); total_out += x.size; - // Kepp the input side in sync + // Keep the input side in sync total_in += x.size; fi->seek(x.size + x.offset, SEEK_SET); } @@ -5384,7 +5384,7 @@ int PackLinuxElf64::pack2(OutputFile *fo, Filter &ft) fo->seek(x.offset, SEEK_SET); fo->write(&file_image[x.offset], x.size); total_out += x.size; - // Kepp the input side in sync + // Keep the input side in sync total_in += x.size; fi->seek(x.size + x.offset, SEEK_SET); } diff --git a/src/packhead.cpp b/src/packhead.cpp index 1939bb88..b0e19db0 100644 --- a/src/packhead.cpp +++ b/src/packhead.cpp @@ -99,7 +99,7 @@ int PackHeader::getPackHeaderSize() const { **************************************************************************/ void PackHeader::putPackHeader(SPAN_S(byte) p) const { - // NOTE: It is the caller's responsbility to ensure the buffer p has + // NOTE: It is the caller's responsibility to ensure the buffer p has // sufficient space for the header. assert(get_le32(p) == UPX_MAGIC_LE32); if (get_le32(p + 4) != UPX_MAGIC2_LE32) { diff --git a/src/packhead.h b/src/packhead.h index dd8d137b..27fb91e3 100644 --- a/src/packhead.h +++ b/src/packhead.h @@ -49,8 +49,8 @@ struct PackHeader final { // enum { magic = UPX_MAGIC_LE32 }; int version; int format; // executable format UPX_F_xxx - int method; // compresison method M_xxx - int level; // compresison level 1..10 + int method; // compression method M_xxx + int level; // compression level 1..10 unsigned u_len; unsigned c_len; unsigned u_adler; diff --git a/src/stub/src/amd64-darwin.macho-main.c b/src/stub/src/amd64-darwin.macho-main.c index 5839ff36..b7e417b7 100644 --- a/src/stub/src/amd64-darwin.macho-main.c +++ b/src/stub/src/amd64-darwin.macho-main.c @@ -63,7 +63,7 @@ // and then followed by a comma to ignore the return value. // The only complication is that percent and backslash // must be doubled in the format string, because the format -// string is processd twice: once at compile-time by 'asm' +// string is processed twice: once at compile-time by 'asm' // to produce the assembled value, and once at runtime to use it. #if defined(__powerpc__) //{ #define DPRINTF(fmt, args...) ({ \ diff --git a/src/stub/src/amd64-linux.elf-main.c b/src/stub/src/amd64-linux.elf-main.c index 2e6ebfd2..223a416b 100644 --- a/src/stub/src/amd64-linux.elf-main.c +++ b/src/stub/src/amd64-linux.elf-main.c @@ -46,7 +46,7 @@ unsigned Pprotect(void *, size_t, unsigned); // and then followed by a comma to ignore the return value. // The only complication is that percent and backslash // must be doubled in the format string, because the format -// string is processd twice: once at compile-time by 'asm' +// string is processed twice: once at compile-time by 'asm' // to produce the assembled value, and once at runtime to use it. #if defined(__powerpc__) //{ #define DPRINTF(fmt, args...) ({ \ diff --git a/src/stub/src/amd64-linux.elf-so_main.c b/src/stub/src/amd64-linux.elf-so_main.c index bb6df9df..f486f467 100644 --- a/src/stub/src/amd64-linux.elf-so_main.c +++ b/src/stub/src/amd64-linux.elf-so_main.c @@ -54,7 +54,7 @@ extern void f_int3(int arg); // and then followed by a comma to ignore the return value. // The only complication is that percent and backslash // must be doubled in the format string, because the format -// string is processd twice: once at compile-time by 'asm' +// string is processed twice: once at compile-time by 'asm' // to produce the assembled value, and once at runtime to use it. #if defined(__powerpc__) //{ #define DPRINTF(fmt, args...) ({ \ diff --git a/src/stub/src/i386-linux.elf-main.c b/src/stub/src/i386-linux.elf-main.c index dc786bd1..20d77e78 100644 --- a/src/stub/src/i386-linux.elf-main.c +++ b/src/stub/src/i386-linux.elf-main.c @@ -65,7 +65,7 @@ ssize_t write(int, void const *, size_t); // and then followed by a comma to ignore the return value. // The only complication is that percent and backslash // must be doubled in the format string, because the format -// string is processd twice: once at compile-time by 'asm' +// string is processed twice: once at compile-time by 'asm' // to produce the assembled value, and once at runtime to use it. #if defined(__powerpc__) //{ #define DPRINTF(fmt, args...) ({ \ diff --git a/src/stub/src/i386-linux.elf-so_main.c b/src/stub/src/i386-linux.elf-so_main.c index ae2297c5..f5f93f2b 100644 --- a/src/stub/src/i386-linux.elf-so_main.c +++ b/src/stub/src/i386-linux.elf-so_main.c @@ -68,7 +68,7 @@ ssize_t Pwrite(int, void const *, size_t); // and then followed by a comma to ignore the return value. // The only complication is that percent and backslash // must be doubled in the format string, because the format -// string is processd twice: once at compile-time by 'asm' +// string is processed twice: once at compile-time by 'asm' // to produce the assembled value, and once at runtime to use it. #if defined(__powerpc__) //{ #define DPRINTF(fmt, args...) ({ \ diff --git a/src/util/xspan_impl.h b/src/util/xspan_impl.h index 4bb5f581..3525873f 100644 --- a/src/util/xspan_impl.h +++ b/src/util/xspan_impl.h @@ -111,7 +111,7 @@ inline void xspan_mem_size_assert_ptrdiff(ptrdiff_t n) { } #if __cplusplus >= 201103L && 0 -// unfortunately doesnt't work with some older versions of libstdc++ +// unfortunately doesn't work with some older versions of libstdc++ // (TODO later: we now require C++17, so this now probably works on all supported platforms) template struct XSpan_is_convertible : public std::is_convertible {};