<<< Date Index >>>     <<< Thread Index >>>

Re: [1.5.9 bug] Mutt discards the \ character before a digit in "To:"



* Thu May 26 2005 Vincent Lefevre <vincent@xxxxxxxxxx>
> (gdb) bt
> #0  0xb7da00dd in mallopt () from /lib/tls/libc.so.6
> #1  0xb7d9f8fb in mallopt () from /lib/tls/libc.so.6
> #2  0xb7d9f394 in calloc () from /lib/tls/libc.so.6
> #3  0xb7deb242 in re_exec () from /lib/tls/libc.so.6
> #4  0xb7de9920 in re_exec () from /lib/tls/libc.so.6
> #5  0xb7de7e81 in re_exec () from /lib/tls/libc.so.6
> #6  0xb7de773a in re_exec () from /lib/tls/libc.so.6
> #7  0xb7de6bf1 in regexec () from /lib/tls/libc.so.6
> #8  0x0808deeb in match_adrlist (rx=0x812ba90, match_personal=1, 
>     alladdr=135445136, n=2) at pattern.c:903
> #9  0x0808e60c in mutt_pattern_exec (pat=0x812ba70, flags=135128912, ctx=0x0, 
>     h=0x81416c0) at pattern.c:1026
> #10 0x0806676c in mutt_set_header_color (ctx=0x812bbf8, curhdr=0x81416c0)
>     at curs_main.c:2130
> #11 0x0805ff85 in index_color (index_no=825832704) at curs_main.c:179
> #12 0x0807ca1c in menu_redraw_index (menu=0x8141848) at menu.c:238
> #13 0x08066491 in mutt_index_menu () at curs_main.c:552
> #14 0x08079a90 in main (argc=5, argv=0xbfffef54) at main.c:934
> 
> If I use "LC_CTYPE=POSIX LC_TIME=POSIX ./mutt -F muttrc -f test",
> I no longer get the crash. But if I omit LC_CTYPE or LC_TIME, then
> I still get the crash.

Thank you!

I'm still trying to reproduce it.
But I've realized that I malloc'ed one byte shorter.

Please rewrite
rfc822.c:745 safe_malloc (slen);
to "safe_malloc (slen + 1);" or "(slen + 2);"
and re-run mutt?

-- 
tamo