Bug#986136: perl: shasum treats read errors like end of file

2021-03-30 Thread gregor herrmann
Control: clone -1 libdigest-sha-perl 6.02-1

On Tue, 30 Mar 2021 11:43:43 +0200, Stefan Arnold wrote:

> I noticed his while testing with an filesystem that should give "read error" 
> at
> a certain point which did not happen but instead gives a hash output. The
> easiest way to reproduce is shasuming a folder:
> 
> strace -e trace=read shasum 0 ...
> read(0, 0x56421603f620, 8192)   = -1 EISDIR (Ist ein Verzeichnis)
> da39a3ee5e6b4b0d3255bfef95601890afd80709  -
> +++ exited with 0 +++
> 
> 
> Read gives a read error but shasum does not pass it.

Thanks for your bug report.

This seems to happen in Digest::SHA, but I leave the detailed
investigation to someone faster :)

I note that both /usr/bin/shasum and Digest::SHA are in both src:perl
and libdigest-sha-perl, hence cloning the bug.


Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   NP: Led Zeppelin: Kashmir


signature.asc
Description: Digital Signature


Bug#986136: perl: shasum treats read errors like end of file

2021-03-30 Thread Stefan Arnold
Package: perl
Version: 5.28.1-6+deb10u1
Severity: normal

I noticed his while testing with an filesystem that should give "read error" at
a certain point which did not happen but instead gives a hash output. The
easiest way to reproduce is shasuming a folder:

strace -e trace=read shasum 0
pn  libterm-readline-gnu-perl | libterm-readline-perl-perl  
ii  make4.2.1-1.2
pn  perl-doc
ii  perl-modules-5.24 [liblocale-codes-perl]5.24.1-3+deb9u5

-- no debconf information