We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6ca02c commit 9c4b9c6Copy full SHA for 9c4b9c6
Build/Apkv3.pm
@@ -375,7 +375,7 @@ sub verifydatasection {
375
my $ctx;
376
$ctx = Digest::SHA->new(256) if length($file->{'hash'}) == 32;
377
$ctx = Digest::SHA->new(512) if length($file->{'hash'}) == 64;
378
- die("unsupported file hashn") unless $file->{'hash'};
+ die("unsupported file hash\n") unless $ctx;
379
my ($datatype, $datasize, $datapad) = read_blk_header($fd);
380
die("missing data block\n") unless $datatype == 2;
381
die("data size mismatch\n") unless $datasize == 8 + $file->{'size'};
0 commit comments