Adding upstream version 1.13~rc2.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
89ca1f7591
commit
7fe0f13dd3
17 changed files with 679 additions and 132 deletions
|
@ -24,6 +24,7 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
#include <stdint.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "lzip.h"
|
||||
|
@ -38,7 +39,7 @@ int repair_file( const std::string & input_filename,
|
|||
const long long isize = lseek( infd, 0, SEEK_END );
|
||||
if( isize < 0 )
|
||||
{ show_error( "Input file is not seekable", errno ); return 1; }
|
||||
if( isize < 36 )
|
||||
if( isize < min_member_size )
|
||||
{ show_error( "Input file is too short." ); return 2; }
|
||||
if( !verify_single_member( infd, isize ) ) return 2;
|
||||
if( lseek( infd, 0, SEEK_SET ) < 0 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue