Re: [Evolution-hackers] Huh .. mail_list_magic[0].pattern gets written to the summary file!

On Tue, 2006-07-11 at 22:51 +0200, Philip Van Hoof wrote:
> On Tue, 2006-07-11 at 22:28 +0200, Philip Van Hoof wrote:

> > I didn't alter the code that writes the summary file. So I'm confident
> > that this bug also happens for people who aren't using the mmap patches
> > yet.

Yes I did. And the very very small change I did caused this
behaviour ;-).


if (len != 0)
    fwrite (str, len, 1, out);

What if len is -1 and str is ""? That is what happened ;-)

I closed the bugreport. You can ignore this thread. It was my own fault.

> Somebody definitely needs to explain me how he managed to write
> mail_list_magic[0].pattern into the summary file of some of my
> mailing> lists ;-)!

Well ;-). fwrite ("", -1, 1, out)

Philip Van Hoof, software developer at x-tend 
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
work: vanhoof at x-tend dot be -

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]