|
Subject: Re: segfault on rfc2047-like subject Newsgroups: gmane.mail.bogofilter.devel Date: 2004-10-09 00:00:48 GMT (4 years, 38 weeks, 3 days, 2 hours and 16 minutes ago) David Relson <relson <at> osagesoftware.com> writes: > I've started looking at text_decode. So far, I see that the line > causing the segfault should use the Z. Wouldn't help. The word argument that text_decode works on is taken straight from flex, and we must not touch anything outside of what flex has provided us. We've trashed the boundary, although this wasn't causing Clint's segfault, but might cause when string ends fall on flex buffer boundaries. > However variable "len" has a bad value, which is part of the problem. Consequential fault. The problem is a bit more complex: 1. that qp_validate replaced the \n that was embedded in the encoded word by a NUL (fixed in CVS) 2. qp_validate happily accepted RFC-2047 encoded words with blanks (fixed in CVS) 3. text_decode operates with strstr when it should be using mem* or word_*. That fails with the embedded NUL inherited from 1. > I'm investigating and will have a fix soon (with luck). Stop right there |
|
|