Must not compare orig_file_size with fi->st_size() during ::unpack
This commit is contained in:
+1
-1
@@ -556,7 +556,7 @@ void PackUnix::unpack(OutputFile *fo)
|
||||
orig_file_size = get_te32(&hbuf.p_filesize);
|
||||
blocksize = get_te32(&hbuf.p_blocksize);
|
||||
|
||||
if (file_size != (off_t)orig_file_size || blocksize > orig_file_size)
|
||||
if (file_size > (off_t)orig_file_size || blocksize > orig_file_size)
|
||||
throwCantUnpack("file header corrupted");
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user