[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dovecot
Subject:    Re: [Dovecot] Deleting metadata smashes file dovecot.dict
From:       Timo Sirainen <tss () iki ! fi>
Date:       2012-08-28 15:54:03
Message-ID: 48AB63AB-A4CF-4B99-AF71-91966896C202 () iki ! fi
[Download RAW message or body]

On 28.8.2012, at 17.42, Ewald Dieterich wrote:

> On 08/08/12 14:23, Andre Gröbe wrote:
> > I am using dovecot (see dovecot -n output below) with metadata plugin in
> > my own plugin. I want to insert and delete some large metadata (>4KiB).
> > It seems, that the delete in a second call of my plugin smashes the file
> > dovecot.dict in users dir:
> 
> That's an error in dict-file.c, file_dict_refresh():
> 
> while ((key = i_stream_read_next_line(input)) != NULL &&
> (value = i_stream_read_next_line(input)) != NULL) {
> 
> If reading the value requires reading from the stream (because the value doesn't \
> fit into the input buffer), the key is overwritten. The attached patch duplicates \
> the key before reading the value.

Committed: http://hg.dovecot.org/dovecot-2.1/rev/6e53209030f6


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic