+++ This bug was initially created as a clone of Bug #1075478 +++ If Digest::SHA's method is called on an unintialized object (missing Digest::SHA->new()), the Digest::SHA crashes: $ perl -MData::Dumper -e 'use Digest::SHA; $d=Digest::SHA->add(); print Data::Dumper::Dumper(\$d);' Segmentation fault $ perl -e 'use Digest::SHA; print Digest::SHA->add(qq(a))->hexdigest' Segmentation fault This has been fixed in Digest-SHA-5.87. F19 and F20 are affected. --- Additional comment from Petr Pisar on 2014-03-12 09:40:02 GMT --- Test: perl -e 'use Digest::SHA; $d=Digest::SHA->add(qq(a)); for (qw(shaclose shadump shadup shaload shaopen sharewind shawrite hashsize add digest)) { eval {$d->$_}; die "$_: $@" unless $@ =~ /on an undefined value/ }' ---- RHSCL-1.1 is affected (perl516-perl-Digest-SHA-5.85-2.el6).
Created attachment 873421 [details] Fix
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2015-1065.html