[prev in list] [next in list] [prev in thread] [next in thread] 

List:       spamassassin-devel
Subject:    [Bug 7931] New: Undefined subroutine &Scalar::Util::tainted
From:       bugzilla-daemon () spamassassin ! apache ! org
Date:       2021-09-29 17:08:50
Message-ID: bug-7931-26 () https ! bz ! apache ! org/SpamAssassin/
[Download RAW message or body]

https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7931

            Bug ID: 7931
           Summary: Undefined subroutine &Scalar::Util::tainted
           Product: Spamassassin
           Version: 3.4.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: spamassassin
          Assignee: dev@spamassassin.apache.org
          Reporter: edman007@edman007.com
  Target Milestone: Undefined

Created attachment 5753
  --> https://bz.apache.org/SpamAssassin/attachment.cgi?id=5753&action=edit
Patch to fix use of Scalar::Util:tainted

Hi,
I am running AMI Linux 2, and recently updated to spamassassin 3.4.4, though
review of the git repo seems to suggest that this issue was introduced in
3.4.3.

Anyways, the issue is when I do sa-learn on a message I get the error:

> Undefined subroutine &Scalar::Util::tainted called at \
> /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Message.pm line 207. at \
> /usr/bin/sa-learn line 503.

Reviewing the source, it looks like bug #7648 (CVE related? I can't view that
bug) introduced some code that seems to use Scalar::Util::tainted, however
there is no matching `use Scalar::Util` anywhere in the source, so this fails.
Reviewing the source the trunk repo does have the required `use Scalar::Util`,
and copying that one line over fixes spamassassin.

-- 
You are receiving this mail because:
You are the assignee for the bug.=


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic