1
0
mirror of https://github.com/upx/upx.git synced 2025-08-07 22:46:51 +08:00

src: fix recently introduced bug in unoptimzeReloc

This commit is contained in:
Markus F.X.J. Oberhumer
2022-10-06 14:09:45 +02:00
parent 8fe83be87f
commit e2b86a49db

View File

@ -941,7 +941,7 @@ unsigned Packer::unoptimizeReloc(SPAN_P(upx_byte) & in, SPAN_P(upx_byte) image,
}
}
in = p + 1;
return ptr_udiff_bytes(relocs, out);
return ptr_udiff_bytes(relocs, out) / 4; // return number of relocs
}
unsigned Packer::unoptimizeReloc32(SPAN_P(upx_byte) & in, SPAN_P(upx_byte) image, MemBuffer &out,