You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@spamassassin.apache.org on 2021/09/29 17:08:50 UTC

[Bug 7931] New: Undefined subroutine &Scalar::Util::tainted

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.

[Bug 7931] Undefined subroutine &Scalar::Util::tainted

Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7931

Henrik Krohns <ap...@hege.li> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |apache@hege.li
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Henrik Krohns <ap...@hege.li> ---
Seems you were a rare case of not loading Scalar::Util though some other module
dependency indirectly.

Fixed:

Sending        spamassassin-3.4/lib/Mail/SpamAssassin/Message.pm
Sending        trunk/lib/Mail/SpamAssassin/Message.pm
Transmitting file data ..done
Committing transaction...
Committed revision 1894308.

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