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...@bugzilla.spamassassin.org on 2007/06/02 23:18:50 UTC
[Bug 5493] New: sa-compile not correctly parsing escaped backslashes
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5493
Summary: sa-compile not correctly parsing escaped backslashes
Product: Spamassassin
Version: 3.2.0
Platform: All
URL: http://www.disco-zombie.net/SARULES/XM_Body.cf
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: sa-compile
AssignedTo: dev@spamassassin.apache.org
ReportedBy: mrgus@disco-zombie.net
sa-compile, when extracting the regex's into the scanner*.re files, seems to
interpret backslahses as either '\"' or '\""'.
Here's the example I used on the sa-users mailing list...
Original rule's regex:
/(?:fr(?:o|0|\(\))(?:n|\|\\\|)[t7]p[a\@4]g[e3]\s\d+)/i
Scanner.re result:
"fro|\""|" {RET("__XM_Sft_Ms_Fp_L33T");}
It produces the above output, instead of "fro|\|".
This comes from the file in the URL field of this ticket. Do an sa-compile with
the file in your spamassassin config, and you'll see this and a few more
examples of the same thing. I've even tried escaping it with the hex code for a
backlash, but I get the same results. :-/ Always either '\"' or '\""'.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5493] [review] sa-compile not correctly parsing escaped backslashes
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5493
jm@jmason.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|sa-compile not correctly |[review] sa-compile not
|parsing escaped backslashes |correctly parsing escaped
| |backslashes
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5493] sa-compile not correctly parsing escaped backslashes
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5493
jm@jmason.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status Whiteboard| |needs 2 votes for 3.2
Target Milestone|Undefined |3.2.4
------- Additional Comments From jm@jmason.org 2007-08-19 15:07 -------
thanks, this is fixed by the patch to follow, which I've just applied to
trunk:
: jm 144...; svn commit -m "bug 5493: sa-compile would not correctly deal with escap
ed backslashes, fix" sa-compile.raw
Sending sa-compile.raw
Transmitting file data .
Committed revision 567486.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5493] [review] sa-compile not correctly parsing escaped backslashes
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5493
sidney@sidney.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status Whiteboard|needs 1 votes for 3.2 |ready to commit for 3.2
------- Additional Comments From sidney@sidney.com 2007-12-16 01:38 -------
+1
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5493] [review] sa-compile not correctly parsing escaped backslashes
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5493
jm@jmason.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |major
------- Additional Comments From jm@jmason.org 2007-09-26 03:23 -------
marking major; sa-compile should not die on valid input
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5493] [review] sa-compile not correctly parsing escaped backslashes
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5493
spamassassin@dostech.ca changed:
What |Removed |Added
----------------------------------------------------------------------------
Status Whiteboard|needs 2 votes for 3.2 |needs 1 votes for 3.2
------- Additional Comments From spamassassin@dostech.ca 2007-11-06 12:06 -------
+1
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5493] [review] sa-compile not correctly parsing escaped backslashes
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5493
jm@jmason.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From jm@jmason.org 2007-12-16 13:21 -------
now in 3.2.x: r604707
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5493] sa-compile not correctly parsing escaped backslashes
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5493
------- Additional Comments From jm@jmason.org 2007-08-19 15:07 -------
Created an attachment (id=4100)
--> (http://issues.apache.org/SpamAssassin/attachment.cgi?id=4100&action=view)
fix
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5493] [review] sa-compile not correctly parsing escaped backslashes
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5493
------- Additional Comments From schneecrash+apache@gmail.com 2007-10-30 15:53 -------
bump ...
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.