RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1075504 - Crash in Digest::SHA if a method is invoked on an uninitialized object
Summary: Crash in Digest::SHA if a method is invoked on an uninitialized object
Keywords:
Status: CLOSED DUPLICATE of bug 1189039
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: perl-Digest-SHA
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: perl-maint-list
QA Contact: BaseOS QE - Apps
URL: http://nntp.perl.org/group/perl.perl5...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-12 09:52 UTC by Petr Pisar
Modified: 2015-02-09 14:36 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1075478
Environment:
Last Closed: 2015-02-09 14:36:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Fix (1.57 KB, patch)
2014-03-12 09:52 UTC, Petr Pisar
no flags Details | Diff

Description Petr Pisar 2014-03-12 09:52:24 UTC
+++ 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/ }'

--- Additional comment from Petr Pisar on 2014-03-12 09:40:44 GMT ---

RHEL-7 is affected (perl-Digest-SHA-5.85-3.el7.x86_64).

Comment 1 Petr Pisar 2014-03-12 09:52:50 UTC
Created attachment 873414 [details]
Fix

Comment 2 Petr Pisar 2015-02-09 14:36:09 UTC

*** This bug has been marked as a duplicate of bug 1189039 ***


Note You need to log in before you can comment on or make changes to this bug.