Fix unoptimizeReloc() to process all relocs

This commit is contained in:
bitraid
2021-04-21 23:06:55 +03:00
committed by Markus F.X.J. Oberhumer
parent fe949bdf67
commit c5cc83d424
+1 -1
View File
@@ -892,7 +892,7 @@ unsigned Packer::unoptimizeReloc(upx_byte **in, upx_byte *image, MemBuffer *out,
jc += dif;
}
*relocs++ = jc; // FIXME: range check jc
if (!--relocn) {
if (!relocn--) {
break;
}
if (bswap && image) {