1
0
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:
Markus F.X.J. Oberhumer 2006-12-22 15:19:51 +01:00
parent 4cee0676a4
commit 9e77dbfe20
2 changed files with 4 additions and 2 deletions

View File

@ -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();

View File

@ -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);