[bugs][ bogofilter-Bugs-877308 ] cmdline: "bogofilter -s < spam-file" crashes
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: SourceForge.net <no...@so...> - 2004-01-15 02:01:09
|
Bugs item #877308, was opened at 2004-01-15 02:01 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=499997&aid=877308&group_id=62265 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Retired Spy (retired_spy) Assigned to: Nobody/Anonymous (nobody) Summary: cmdline: "bogofilter -s < spam-file" crashes Initial Comment: GDB core stack dump: #0 0x1ee34 in html_char () at lexer_v3.l:355 355 if ((val < 256) && isprint(val)) { /* use it if printable */ (gdb) where #0 0x1ee34 in html_char () at lexer_v3.l:355 #1 0x1de38 in lexer_v3_lex () at lexer_v3.l:289 #2 0x22670 in get_token () at token.c:79 #3 0x1ad88 in collect_words (wh=0x582540) at collect.c:91 #4 0x163ec in bogofilter (argc=362496, argv=0x582540) at bogofilter.c:98 #5 0x166c8 in main (argc=0, argv=0xffbefb4c) at main.c:55 (gdb) print val = -1473327884 Following change seems to work but I haven't done any analysis: bogofilter> diff lexer_v3.l lexer_v3.l.original 354c354 < if ((val > 0) && (val < 256) && isprint(val)) { /* use it if printable */ --- > if ((val < 256) && isprint(val)) { /* use it if printable */ Best Rgds, -H- ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=499997&aid=877308&group_id=62265 |