segfault on rfc2047-like subject

Matthias Andree matthias.andree at gmx.de
Sat Oct 9 01:27:29 CEST 2004


Clint Adams <schizo at debian.org> writes:

> Subject: [Broken] =?ISO-8859-1?Q?Re=3A_=5BBroken=5D_=3D=3FISO-8859-1=3FQ=3F=3D5B?=
>  =?ISO-8859-1?Q?Broken=3D5DBlah=3D20Foo=3DE4=3D20Bar=3D20Blah
>  _?= =?ISO-8859-1?Q?Foo=3D3D28=3D5F=3F=3D_Bar=5F=5F=3F=3D_t=E4Blah?=
>  =?ISO-8859-1?Q?Foo=E4t=29?=

Gee. qp_validate was tampering with the string it was passed, turning
the LF into a NUL and replacing underscores by blanks (that surely
doesn't belong into a "validate" function.)

The NUL then choked text_decode which was supposed to treat word_t
rather than C strings.

I think we need to tell the quoted-printable decoder whether it is
decoding RFC-2047 (transform underscore to blank; blank and tab illegal)
or RFC-2045 (pass underscore, blank and tab allowed).

-- 
Matthias Andree

NOTE YOU WILL NOT RECEIVE MY MAIL IF YOU'RE USING SPF!
Encrypted mail welcome: my GnuPG key ID is 0x052E7D95 (PGP/MIME preferred)



More information about the bogofilter-dev mailing list