mirror of
https://github.com/intel/isa-l.git
synced 2024-12-13 09:52:56 +01:00
igzip: Fix cli to verify checksum when decompressing
Change-Id: Ifa4d0eb5345bc3c3e97a23e3e32c732057bd8ba9 Signed-off-by: Roy Oursler <roy.j.oursler@intel.com>
This commit is contained in:
parent
f76288339a
commit
ebab4454ef
@ -1,5 +1,5 @@
|
|||||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.7.
|
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.7.
|
||||||
.TH IGZIP "1" "November 2018" "igzip command line interface 2.24.0" "User Commands"
|
.TH IGZIP "1" "December 2018" "igzip command line interface 2.24.0" "User Commands"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
igzip \- compress or decompress files similar to gzip
|
igzip \- compress or decompress files similar to gzip
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -616,7 +616,7 @@ int decompress_file(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
isal_inflate_init(&state);
|
isal_inflate_init(&state);
|
||||||
state.crc_flag = IGZIP_GZIP_NO_HDR;
|
state.crc_flag = ISAL_GZIP_NO_HDR_VER;
|
||||||
state.next_in = inbuf;
|
state.next_in = inbuf;
|
||||||
state.avail_in = fread_safe(state.next_in, 1, inbuf_size, in, infile_name);
|
state.avail_in = fread_safe(state.next_in, 1, inbuf_size, in, infile_name);
|
||||||
|
|
||||||
|
@ -211,6 +211,8 @@ $IGZIP $file1 -o $file1$ds || ret=1
|
|||||||
$IGZIP -t $file1$ds || ret=1
|
$IGZIP -t $file1$ds || ret=1
|
||||||
$IGZIP -t $file2 &> /dev/null && ret=1
|
$IGZIP -t $file2 &> /dev/null && ret=1
|
||||||
cp $file1$ds $file2 && $IGZIP -t $file1$ds || ret=1
|
cp $file1$ds $file2 && $IGZIP -t $file1$ds || ret=1
|
||||||
|
truncate -s -1 $file1$ds
|
||||||
|
$IGZIP -t $file1$ds &> /dev/null && ret=1
|
||||||
pass_check $ret "Test test"
|
pass_check $ret "Test test"
|
||||||
clear_dir
|
clear_dir
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user