mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Check for .NET (win32/net) files.
committer: mfx <mfx> 1090256077 +0000
This commit is contained in:
parent
8204c7deb6
commit
9110517893
|
@ -75,6 +75,7 @@ static unsigned my_strlen(const unsigned char *s)
|
|||
{
|
||||
size_t l = strlen((const char*)s); assert((unsigned) l == l); return (unsigned) l;
|
||||
}
|
||||
#undef strlen
|
||||
#define strlen my_strlen
|
||||
#endif
|
||||
|
||||
|
@ -1624,17 +1625,18 @@ void PackW32Pe::pack(OutputFile *fo)
|
|||
|| ih.ddirsentries != 16
|
||||
|| IDSIZE(PEDIR_EXCEPTION) // is this used on i386?
|
||||
// || IDSIZE(PEDIR_COPYRIGHT)
|
||||
|| IDSIZE(PEDIR_COMRT)
|
||||
))
|
||||
throwCantPack("unexpected value in PE header (try --force)");
|
||||
|
||||
if (IDSIZE(PEDIR_SEC))
|
||||
throwCantPack("compressing certificate info is not supported");
|
||||
if (IDSIZE(PEDIR_COMRT))
|
||||
throwCantPack(".NET files (win32/net) are not yet supported");
|
||||
|
||||
// Structured Exception Handling
|
||||
if (!opt->win32_pe.strip_loadconf && IDSIZE(PEDIR_LOADCONF))
|
||||
throwCantPack("Structured Exception Handling present (try --strip-loadconf)");
|
||||
|
||||
if (IDSIZE(PEDIR_SEC))
|
||||
throwCantPack("compressing certificate info is not supported");
|
||||
|
||||
if (isdll)
|
||||
opt->win32_pe.strip_relocs = false;
|
||||
else if (opt->win32_pe.strip_relocs < 0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user