SA Bugzilla – Bug 5094
[review] Use of uninitialized value in pattern match (m//) at AntiVirus.pm line 105
Last modified: 2006-10-03 16:02:06 UTC
I've been seeing a few of these lately. It's not immediately obvious to me why. Sep 4 12:02:23 wally spamd[18882]: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.8.6/Mail/S pamAssassin/Plugin/AntiVirus.pm line 105, <GEN1371> line 198. [dos@wally ~]$ spamassassin -V SpamAssassin version 3.1.5 running on Perl version 5.8.6
Created attachment 3689 [details] trigger email
Hrm... $p->raw()->[0] is undefined at line 111. I currently know nothing about how find_parts works, so I have no idea if that should be expected or not.
Created attachment 3708 [details] suggested patch
[dos@FC5-VPC trunk]$ svn ci -m "bug 5094: check for unit'd value used in AntiVirus.pm" Sending lib/Mail/SpamAssassin/Plugin/AntiVirus.pm Transmitting file data . Committed revision 451380.
+1 -- makes sense to be defensive there
+1
[dos@FC5-VPC 3.1]$ svn ci -m "bug 5094: check for unit'd value used in AntiVirus.pm" Sending lib/Mail/SpamAssassin/Plugin/AntiVirus.pm Transmitting file data . Committed revision 452671.
fixed