search for: kaiyou

Displaying 6 results from an estimated 6 matches for "kaiyou".

Did you mean: baoyou
2016 Oct 17
2
Dict proxy client returning empty string instead of multiline string
...> > - add an optional "pool" attribute to the "client_dict_cmd" structure, > - pass the pool to the async lookup function, > - use the pool when escaping strings that should survive the callback > chain > > What do you think? > > Regards, > kaiyou > > > On 10/17/2016 09:52 AM, Pierre Jaury wrote: > > While trying to isolate properly and reproduce, I was able to trigger > > the same bug with the following code: > > > > struct dict *dict; > > char* dict_uri = "proxy::sieve"; > > c...
2016 Oct 17
2
Dict proxy client returning empty string instead of multiline string
...an come up with is that during > unescaping, strings are not allocated properly, leading to the memory > pool reusing the string address and zeroing it in the process before the > string copy operation. > > I will follow on this path tomorrow, any lead is more than welcome. > > kaiyou. > > On 10/16/2016 11:16 PM, Pierre Jaury wrote: >> Hello, >> >> I am using a dict proxy for my sieve extdata plugin to access some >> fields from an SQLite database (autoreply text and other >> database-configured items). >> >> All tests are performe...
2016 Oct 17
1
Dict proxy client returning empty string instead of multiline string
...Finally, I was able to run the first snippet without bug by removing the string duplication in "t_str_tabunescape" (which I realize is not a proper solution), or by explicitely using the following pool: return str_tabunescape(p_strdup(pool_datastack_create(), str)); Hope this helps. kaiyou On 10/17/2016 07:51 AM, Aki Tuomi wrote: > Hi! > > This does sound like a bug, we'll have look. > > Aki > > > On 17.10.2016 01:26, Pierre Jaury wrote: >> I dived a little bit further into the rabbit hole, up to the point where >> debugging has become un...
2016 Oct 17
2
Dict proxy client returning empty string instead of multiline string
...client_dict_cmd" structure, > >> - pass the pool to the async lookup function, > >> - use the pool when escaping strings that should survive the callback > >> chain > >> > >> What do you think? > >> > >> Regards, > >> kaiyou > >> > >> > >> On 10/17/2016 09:52 AM, Pierre Jaury wrote: > >>> While trying to isolate properly and reproduce, I was able to trigger > >>> the same bug with the following code: > >>> > >>> struct dict *dict; > >&gt...
2016 Oct 16
2
Dict proxy client returning empty string instead of multiline string
...liar with the pooling mechanism hidden behind the call to p_strdump and not quite sure why this behaviour is emerging. Maybe I am even miles away from an understanding of the issue here, but it sounds to me like something is wrong in the way "p_strdup" performs the copy. Hope this helps, kaiyou.
2016 Oct 17
2
Dict proxy client returning empty string instead of multiline string
...standing of the issue here, but it sounds > > > >>>>>> to me like something is wrong in the way "p_strdup" performs the copy. > > > >>>>>> > > > >>>>>> Hope this helps, > > > >>>>>> kaiyou. > > > >>>>>> > > > >>>>>> > > > >>>>> > Fixed with https://github.com/dovecot/core/commit/4f051c3082080b9d69ef12c3720c683cff34b0da Aki Tuomi