add UPX_F_BSD_ELF_i386 to the exceptions for patchDecompressor()
This commit is contained in:
+6
-2
@@ -244,7 +244,9 @@ void Packer::patchDecompressor(void *loader, int lsize)
|
|||||||
|| UPX_F_LINUX_ELF64_AMD ==ph.format
|
|| UPX_F_LINUX_ELF64_AMD ==ph.format
|
||||||
|| UPX_F_LINUX_ELF32_ARMLE==ph.format
|
|| UPX_F_LINUX_ELF32_ARMLE==ph.format
|
||||||
|| UPX_F_LINUX_ELFPPC32 ==ph.format
|
|| UPX_F_LINUX_ELFPPC32 ==ph.format
|
||||||
|| UPX_F_LINUX_ELF32_ARMBE==ph.format ) {
|
|| UPX_F_LINUX_ELF32_ARMBE==ph.format
|
||||||
|
|| UPX_F_BSD_ELF_i386 ==ph.format
|
||||||
|
) {
|
||||||
// ELF calls the decompressor many times; the parameters change!
|
// ELF calls the decompressor many times; the parameters change!
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -272,7 +274,9 @@ void Packer::defineDecompressorSymbols()
|
|||||||
|| UPX_F_LINUX_ELF64_AMD ==ph.format
|
|| UPX_F_LINUX_ELF64_AMD ==ph.format
|
||||||
|| UPX_F_LINUX_ELF32_ARMLE==ph.format
|
|| UPX_F_LINUX_ELF32_ARMLE==ph.format
|
||||||
|| UPX_F_LINUX_ELFPPC32 ==ph.format
|
|| UPX_F_LINUX_ELFPPC32 ==ph.format
|
||||||
|| UPX_F_LINUX_ELF32_ARMBE==ph.format ) {
|
|| UPX_F_LINUX_ELF32_ARMBE==ph.format
|
||||||
|
|| UPX_F_BSD_ELF_i386 ==ph.format
|
||||||
|
) {
|
||||||
// ELF calls the decompressor many times; the parameters change!
|
// ELF calls the decompressor many times; the parameters change!
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user