Mailing List Archive

[Bug 7880] Can't call method "name" on an undefined value at lib/Mail/SpamAssassin/Message/Node.pm line 533 (nullref exception)
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7880

John Hardin <jhardin@impsec.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
CC| |jhardin@impsec.org
Status|NEW |RESOLVED

--- Comment #1 from John Hardin <jhardin@impsec.org> ---

1. Modify test data to include a "short UTF-16" header case observed
in-the-wild that triggered this bug, verify test on unmodified Node.pm fails.
2. Modify Node.pm _normalize() to behave safely if detect_utf16() cannot
determine the endianness of the data.
3. Modify detect_utf16() to skip the data scan if a BOM is present (for
efficiency, as Perl's UTF-16 decoder will figure out the endianness from the
BOM)
4. Verify test from 1 now passes
5. Verify example from bug 7252 still works properly

Modified: .../trunk/lib/Mail/SpamAssassin/Message/Node.pm
Modified: .../trunk/t/data/nice/unicode2
Committed revision 1885696.

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