1
0
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:
John Reiser 2002-11-08 05:34:57 +00:00
parent f5a2641ea1
commit e0ad859eef

View File

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