mirror of
https://github.com/upx/upx.git
synced 2024-11-23 04:39:59 +00:00
Fix some typos in documentation and comments.
This commit is contained in:
parent
340c3963d8
commit
82801d1411
2
BUGS
2
BUGS
@ -44,7 +44,7 @@ test file.
|
||||
|
||||
win32/pe
|
||||
--------
|
||||
* writeable shared sections (`--force' *may* work)
|
||||
* writable shared sections (`--force' *may* work)
|
||||
* certificates in the image
|
||||
* compressing files which contain a big BSS requires lots of memory
|
||||
during compression
|
||||
|
@ -20,7 +20,7 @@ code 127, and a record will be added to the history file
|
||||
|
||||
In "targeted enforcing" mode, SELinux pays close attention mostly to
|
||||
designated processes that run with elevated privileges: web server,
|
||||
print server, login server, etc. Ordinary user excutables receive
|
||||
print server, login server, etc. Ordinary user executables receive
|
||||
much less scrutiny. However, one of the eventual goals of SELinux is to
|
||||
eradicate runtime generation of instructions because of the possibility
|
||||
for exploitation by malware (virus, trojan, key logger, privilege
|
||||
|
@ -599,7 +599,7 @@ void PackArmPe::pack(OutputFile *fo)
|
||||
if (((isection[ic].flags & (PEFL_WRITE|PEFL_SHARED))
|
||||
== (PEFL_WRITE|PEFL_SHARED)))
|
||||
if (!opt->force)
|
||||
throwCantPack("writeable shared sections not supported (try --force)");
|
||||
throwCantPack("writable shared sections not supported (try --force)");
|
||||
if (jc && isection[ic].rawdataptr - jc > ih.filealign)
|
||||
throwCantPack("superfluous data between sections");
|
||||
fi->seek(isection[ic].rawdataptr,SEEK_SET);
|
||||
|
@ -449,7 +449,7 @@ int PackLinuxI386::getLoaderPrefixSize() const
|
||||
// some ELF utitlity functions
|
||||
**************************************************************************/
|
||||
|
||||
// basic check of an Linux ELF Ehdr
|
||||
// basic check of a Linux ELF Ehdr
|
||||
int PackLinuxI386::checkEhdr(const Elf_LE32_Ehdr *ehdr) const
|
||||
{
|
||||
const unsigned char * const buf = ehdr->e_ident;
|
||||
|
@ -834,7 +834,7 @@ void PackW32Pe::pack(OutputFile *fo)
|
||||
throwCantPack("PE32/EFIROM files are not yet supported");
|
||||
break;
|
||||
}
|
||||
case 14: //XBOX - will we ever see an XBOX file?
|
||||
case 14: //XBOX - will we ever see a XBOX file?
|
||||
{
|
||||
throwCantPack("PE32/xbox files are not yet supported");
|
||||
break;
|
||||
@ -917,7 +917,7 @@ void PackW32Pe::pack(OutputFile *fo)
|
||||
if (!isrtm && ((isection[ic].flags & (PEFL_WRITE|PEFL_SHARED))
|
||||
== (PEFL_WRITE|PEFL_SHARED)))
|
||||
if (!opt->force)
|
||||
throwCantPack("writeable shared sections not supported (try --force)");
|
||||
throwCantPack("writable shared sections not supported (try --force)");
|
||||
if (jc && isection[ic].rawdataptr - jc > ih.filealign)
|
||||
throwCantPack("superfluous data between sections");
|
||||
fi->seek(isection[ic].rawdataptr,SEEK_SET);
|
||||
@ -1092,7 +1092,7 @@ void PackW32Pe::pack(OutputFile *fo)
|
||||
// still in a read only section by looking at the pe header of the
|
||||
// file. If this check fails the runtime does "interesting" things
|
||||
// like not running the floating point initialization code - the result
|
||||
// is an R6002 runtime error.
|
||||
// is a R6002 runtime error.
|
||||
// These supposed to be read only addresses are covered by the sections
|
||||
// UPX0 & UPX1 in the compressed files, so we have to patch the PE header
|
||||
// in the memory. And the page on which the PE header is stored is read
|
||||
|
@ -360,7 +360,7 @@ void PackWcle::preprocessFixups()
|
||||
//if (memcmp(iimage+jc+fixp2,fix+5,(fix[1] & 0x10) ? 4 : 2))
|
||||
// throwCantPack("illegal fixup offset");
|
||||
|
||||
// work around an pmwunlite bug: remove duplicated fixups
|
||||
// work around a pmwunlite bug: remove duplicated fixups
|
||||
// FIXME: fix the other cases too
|
||||
if (rc == 0 || get_le32(rl+4*rc-4) != jc+fixp2)
|
||||
{
|
||||
|
@ -475,7 +475,7 @@ void Packer::verifyOverlappingDecompression(upx_bytep o_ptr, unsigned o_size, Fi
|
||||
|
||||
|
||||
/*************************************************************************
|
||||
// Find overhead for in-place decompression in an heuristic way
|
||||
// Find overhead for in-place decompression in a heuristic way
|
||||
// (using a binary search). Return 0 on error.
|
||||
//
|
||||
// To speed up things:
|
||||
|
@ -203,8 +203,8 @@ section PEDEPHAK
|
||||
#endif
|
||||
|
||||
lea eax, [edi + swri]
|
||||
andb [eax], 0x7f // marks UPX0 non writeable
|
||||
andb [eax + 0x28], 0x7f // marks UPX1 non writeable
|
||||
andb [eax], 0x7f // marks UPX0 non writable
|
||||
andb [eax + 0x28], 0x7f // marks UPX1 non writable
|
||||
|
||||
#if 0
|
||||
push esp
|
||||
|
Loading…
Reference in New Issue
Block a user