mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
pack1() re-allocates ibuf after setting blocksize
committer: jreiser <jreiser> 1036733697 +0000
This commit is contained in:
parent
f5a2641ea1
commit
e0ad859eef
|
@ -238,6 +238,8 @@ void PackLinuxI386elf::pack1(OutputFile *fo, Filter &)
|
|||
{
|
||||
// set options
|
||||
opt->unix.blocksize = blocksize = file_size;
|
||||
ibuf.dealloc();
|
||||
ibuf.alloc(blocksize);
|
||||
|
||||
fi->seek(0, SEEK_SET);
|
||||
fi->readx(&ehdri, sizeof(ehdri));
|
||||
|
|
Loading…
Reference in New Issue
Block a user