mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Added an assertion to make sure I've really understood the semantics
of the ctok32 filter length.
This commit is contained in:
parent
4cee0676a4
commit
9e77dbfe20
|
@ -271,7 +271,8 @@ void PackVmlinuxBase<T>::pack(OutputFile *fo)
|
|||
defineDecompressorSymbols();
|
||||
defineFilterSymbols(linker, &ft);
|
||||
if (0x40==(0xf0 & ft.id)) {
|
||||
linker->defineSymbol("filter_length", ph.u_len); // redefine
|
||||
linker->defineSymbol("filter_length", ft.buf_len); // redefine
|
||||
assert(ft.buf_len == ph.u_len);
|
||||
}
|
||||
relocateLoader();
|
||||
|
||||
|
|
|
@ -445,7 +445,8 @@ void PackBvmlinuzI386::pack(OutputFile *fo)
|
|||
|
||||
defineFilterSymbols(linker, &ft);
|
||||
if (0x40==(0xf0 & ft.id)) {
|
||||
linker->defineSymbol("filter_length", ph.u_len); // redefine
|
||||
linker->defineSymbol("filter_length", ft.buf_len); // redefine
|
||||
assert(ft.buf_len == ph.u_len);
|
||||
}
|
||||
defineDecompressorSymbols();
|
||||
linker->defineSymbol("original_entry", physical_start);
|
||||
|
|
Loading…
Reference in New Issue
Block a user