Fix headway during optimizeReloc()

Later: "Assertion `(soxrelocs == 0) == !has_oxrelocs' failed."
https://github.com/upx/upx/issues/552
	modified:   packer.cpp
	modified:   packer.h
	modified:   pefile.cpp
This commit is contained in:
John Reiser
2021-12-31 10:27:58 -08:00
committed by Markus F.X.J. Oberhumer
parent ea567a8b14
commit 2e64a277f8
3 changed files with 15 additions and 7 deletions
+2 -1
View File
@@ -37,7 +37,8 @@
**************************************************************************/
Packer::Packer(InputFile *f)
: bele(nullptr), fi(f), file_size(-1), ph_format(-1), ph_version(-1), uip(nullptr),
: bele(nullptr), fi(f), file_size(-1), ph_format(-1), ph_version(-1),
ibufgood(0), uip(nullptr),
linker(nullptr), last_patch(nullptr), last_patch_len(0), last_patch_off(0) {
file_size = 0;
if (fi != nullptr)