mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
fix don't-care uninit from valgrind(memcheck)
This commit is contained in:
parent
d97a557ac3
commit
d08a51d7e4
|
@ -322,6 +322,7 @@ void PackVmlinuxBase<T>::pack(OutputFile *fo)
|
||||||
unsigned const frag = (3& (0u-len_cpr));
|
unsigned const frag = (3& (0u-len_cpr));
|
||||||
ppc32_extra += sizeof(hdr_info) + len_cpr + frag;
|
ppc32_extra += sizeof(hdr_info) + len_cpr + frag;
|
||||||
fo_off += len_cpr + frag;
|
fo_off += len_cpr + frag;
|
||||||
|
memset(&cpr_hdr[len_cpr], 0, frag); // valgrind only
|
||||||
fo->write(cpr_hdr, len_cpr + frag);
|
fo->write(cpr_hdr, len_cpr + frag);
|
||||||
|
|
||||||
// Partial filter: .text and following contiguous SHF_EXECINSTR
|
// Partial filter: .text and following contiguous SHF_EXECINSTR
|
||||||
|
|
Loading…
Reference in New Issue
Block a user