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

gregor herrmann gregoa at debian.org
Tue Mar 30 16:08:21 BST 2021


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</tmp
> ...
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: Digital Signature
URL: <http://alioth-lists.debian.net/pipermail/perl-maintainers/attachments/20210330/90e7c956/attachment.sig>


More information about the Perl-maintainers mailing list